Stringsqlstr=@"select td.SN, tdp.SN as SN_tdp,td.points,AssignedTo_userid FROM esn_todos td
Stringsqlstr=@"select td.SN, tdp.SN as SN_tdp,td.points,AssignedTo_userid,tdp.date_points_settlement,td.TaskDescription,td.CaseNo ,eel.* FROM esn_todos td
left join esn_todos_points tdp on tdp.sn=td.sn
left join esn_todos_points tdp on tdp.sn=td.sn
WHERE td.sn in ("+sns+")";
left join evw_Employee eel on eel.user_id=td.AssignedTo_userid
insert into esn_todos_Flow_his(Flow_id,ConfirmTime,FromType_id,ToType_id,ConfirmUserId,ConfirmUserClass,ConfirmMethod,Description,Create_User_id,Create_time)
insert into esn_todos_Flow_his(Flow_id,ConfirmTime,FromType_id,ToType_id,ConfirmUserId,ConfirmUserClass,ConfirmMethod,Description,Create_User_id,Create_time)
select id as Flow_id,GETDATE(),a.StepType_id,StepType_id,@gWadeID,'HR','SL','結算日期:' + @value,@gWadeID,GETDATE() from esn_todos_Flow a where a.id=@FlowId;
select id as Flow_id,GETDATE(),a.StepType_id,StepType_id,@gWadeID,'HR','SL','結算日期:' + @value,@gWadeID,GETDATE() from esn_todos_Flow a where a.id=@FlowId;