/// 保存工单处理记录 /// <summary> /// 保存工单处理记录 /// </summary> /// <param name="jsondata"></param> /// <param name="sysinfo"></param> private void SaveWOrderProcessInfo(WOrderJsonData jsondata, SysRightUserInfo sysinfo) { WOrderProcessInfo process = new WOrderProcessInfo(); process.ProcessType = (int)jsondata.OperType; process.OrderID = jsondata.WOrderID; process.WorkOrderStatus = (int)jsondata.OrderStatus; process.IsReturnVisit = -1; process.ProcessContent = sysinfo.TrueName + jsondata.Oper + "了工单 [" + jsondata.WOrderID + "]"; process.Status = 0; process.CreateUserID = sysinfo.UserID; process.CreateUserNum = sysinfo.UserCode; process.CreateUserName = sysinfo.TrueName; process.CreateUserDeptName = sysinfo.MainDepartName; process.CreateTime = DateTime.Now; CommonBll.Instance.InsertComAdoInfo(process); }
/// 保存工单处理记录 /// <summary> /// 保存工单处理记录 /// </summary> /// <param name="jsondata"></param> /// <param name="sysinfo"></param> public void SaveWOrderProcess(WOrderProcessJsonData jsondata, SysRightUserInfo sysinfo, WOrderOperTypeEnum oper, string orderid) { WOrderProcessInfo process = new WOrderProcessInfo(); process.ProcessType = (int)oper; process.OrderID = orderid; process.WorkOrderStatus = (int)jsondata.WorkOrderStatus_Out; process.IsReturnVisit = jsondata.IsReturnVisit_Out; process.ProcessContent = jsondata.ProcessContent_Out; process.Status = 0; process.CreateUserID = sysinfo.UserID; process.CreateUserNum = sysinfo.UserCode; process.CreateUserName = sysinfo.TrueName; process.CreateUserDeptName = sysinfo.MainDepartName; process.CreateTime = DateTime.Now; CommonBll.Instance.InsertComAdoInfo(process); jsondata.ProcessID = process.RecID_Value; }