Commit dc5cd706 authored by solho's avatar solho

更新修改運營辦參數

parent ef7952c6
......@@ -396,11 +396,10 @@ namespace WebAPI.Controllers
#endregion
//Confirm_Class.Add("PG"); Confirm_Class.Add("Leader"); //test
#region 取得FLOW相關
cmd.CommandText = @"select et.*,etf.id AS Flowid,etf.*,eeas.cn_name as ascn_name,
cmd.CommandText = @"select et.*,etf.id AS Flowid,etf.*,
etfs.* FROM esn_todos et
left join esn_todos_Flow etf on et.sn=etf.esn_todos_sn
left join esn_todos_Flow_StepType etfs on etfs.id=etf.StepType_id
left join evw_Employee eeas on eeas.user_id=et.AssignedTo
left join esn_todos_Flow_StepType etfs on etfs.id=etf.StepType_id
where et.sn in(@Esn_Todos_Sn)
";
......@@ -491,10 +490,8 @@ namespace WebAPI.Controllers
Tsql = Tsql + "PG_IsConfirm =" + IsConfirm + "," + "PE_IsConfirm =" + IsConfirm + "," + "Leader_IsConfirm =" + IsConfirm + ","; //退回後,改為更新所有Flow狀態確認
CStepTypeNext = AllStepType.Where(p => p.Step_Value == Step_Value_previous).FirstOrDefault();
StepType_idHis = CStepTypeCur.id;
RJOp= @"update esn_Todos set AssignStatus = 'AS01', AssignStatus_name = '運營辦指派' where sn = " + dr["sn"] + @";
insert into esn_OthData(oth_ID, FldName, FldValue, FldMemo, FldMemo2, oth_Status, updateUser, update_time)
select " + dr["sn"] + ",'SuggestPoints'," + dr["Points"] + ",@Reject_Description,'','I',@ascn_name,GETDATE()";
cmd.Parameters.AddWithValue("@ascn_name", dr["ascn_name"]);
RJOp= @"exec [dbo].esp_esn_Todos_V3_AssignStatus 'FlowAS01' ," + dr["sn"] + @",'',@Reject_Description,@Wade_User_ID";
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment