public T_OA_VEHICLEDISPATCH GetVehicleDispatchById(string entityId) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); T_OA_VEHICLEDISPATCH VehicleDispatchById = vehicleDispatchManagerBll.GetVehicleDispatchById(entityId); return(VehicleDispatchById == null ? null : VehicleDispatchById); }
public int AddVehicleDispatchAndDetail(T_OA_VEHICLEDISPATCH vehicleDispatch, List <T_OA_VEHICLEDISPATCHDETAIL> vddList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.AddVehicleDispatchAndDetail(vehicleDispatch, vddList) == -1) { return(-1); } return(1); }
public int UpdateVehicleDispatch(T_OA_VEHICLEDISPATCH vehicleDispatch) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.UpdateVehicleDispatch(vehicleDispatch) == -1) { return(-1); } return(1); }
public int Upd_VDRecord(List <T_OA_VEHICLEDISPATCHRECORD> vddList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.Upd_VDRecord(vddList) != 1) { return(-1); } return(1); }
public int AddVehicleDispatch(T_OA_VEHICLEDISPATCH vehicleDispatchInfo) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.AddVehicleDispatch(vehicleDispatchInfo) == 1) { return(1); } return(-1); }
public int UpdateVehicleDispatchList(List <T_OA_VEHICLEDISPATCH> vehicleDispatchList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); foreach (T_OA_VEHICLEDISPATCH obj in vehicleDispatchList) { if (vehicleDispatchManagerBll.UpdateVehicleDispatch(obj) == -1) { return(-1); } } return(1); }
public int DeleteVehicleDispatchList(List <T_OA_VEHICLEDISPATCH> vehicleDispatchList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); foreach (T_OA_VEHICLEDISPATCH obj in vehicleDispatchList) { if (vddBll.DeleteVehicleDispatchDetailByDiaspatchId(obj.VEHICLEDISPATCHID) == -1) { return(-1); } if (!vehicleDispatchManagerBll.DeleteVehicleDispatch(obj.VEHICLEDISPATCHID)) { return(-1); } } return(1); }
public List <T_OA_VEHICLEDISPATCHRECORD> Gets_VDRecord(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); IQueryable <T_OA_VEHICLEDISPATCHRECORD> infoList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { infoList = vehicleDispatchManagerBll.Gets_VDRecord(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID, null, checkState); } else//审批人 { ServiceClient workFlowWS = new ServiceClient(); string isView = "1"; if (checkState == "4") { isView = "0"; } SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_VEHICLEDISPATCHRECORD", loginUserInfo.companyID, loginUserInfo.userID); if (flowList == null) { return(null); } List <string> guidStringList = new List <string>(); foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList) { guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID); } if (guidStringList.Count < 1) { return(null); } infoList = vehicleDispatchManagerBll.Gets_VDRecord(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID, guidStringList, checkState); } if (infoList == null) { return(null); } else { return(infoList.ToList()); } }
public List<T_OA_VEHICLEDISPATCH> Gets_VDInfo(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); IQueryable<T_OA_VEHICLEDISPATCH> infoList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { infoList = vehicleDispatchManagerBll.Gets_VDInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID, null, checkState); } else//审批人 { ServiceClient workFlowWS = new ServiceClient(); string isView = "1"; if (checkState == "4") { isView = "0"; } SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_VEHICLEDISPATCH", loginUserInfo.companyID, loginUserInfo.userID); if (flowList == null) { return null; } List<string> guidStringList = new List<string>(); foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList) { guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID); } if (guidStringList.Count < 1) { return null; } infoList = vehicleDispatchManagerBll.Gets_VDInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID, guidStringList, checkState); } if (infoList == null) { return null; } else { return infoList.ToList(); } }
public int AddVehicleDispatchAndDetail(T_OA_VEHICLEDISPATCH vehicleDispatch, List<T_OA_VEHICLEDISPATCHDETAIL> vddList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.AddVehicleDispatchAndDetail(vehicleDispatch, vddList) == -1) { return -1; } return 1; }
public int DeleteVehicleDispatchList(List<T_OA_VEHICLEDISPATCH> vehicleDispatchList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); VehicleDispatchDetailBll vddBll = new VehicleDispatchDetailBll(); foreach (T_OA_VEHICLEDISPATCH obj in vehicleDispatchList) { if (vddBll.DeleteVehicleDispatchDetailByDiaspatchId(obj.VEHICLEDISPATCHID) == -1) { return -1; } if (!vehicleDispatchManagerBll.DeleteVehicleDispatch(obj.VEHICLEDISPATCHID)) { return -1; } } return 1; }
/// <summary> /// 根据传回的XML,添加派车单 /// </summary> /// <param name="xele"></param> private static string VehicledispatchAdd(IEnumerable<XElement> eGFunc) { try { if (eGFunc.Count() == 0) { return ""; } string strEmployeeID = string.Empty; string strOwnerID = string.Empty; string strOwnerPostID = string.Empty; string strOwnerDepartmentID = string.Empty; string strOwnerCompanyID = string.Empty; foreach (var q in eGFunc) { string strName = q.Attribute("Name").Value; switch (strName) { case "CREATEUSERID": strEmployeeID = q.Attribute("Value").Value; break; case "OWNERID": strOwnerID = q.Attribute("Value").Value; break; case "OWNERPOSTID": strOwnerPostID = q.Attribute("Value").Value; break; case "OWNERDEPARTMENTID": strOwnerDepartmentID = q.Attribute("Value").Value; break; case "OWNERCOMPANYID": strOwnerCompanyID = q.Attribute("Value").Value; break; } } string employeeid = strEmployeeID.Replace("{", "").Replace("}", ""); T_OA_VEHICLEDISPATCH entity = new T_OA_VEHICLEDISPATCH(); entity.VEHICLEDISPATCHID = Guid.NewGuid().ToString(); SmtOACommonAdmin oa = new SmtOACommonAdmin(); List<T_OA_VEHICLE> vehicleInfoList = oa.GetVehicleInfoList(); entity.T_OA_VEHICLE = vehicleInfoList[0]; entity.CREATEDATE = DateTime.Now; entity.OWNERID = strOwnerID; entity.OWNERPOSTID = strOwnerPostID; entity.OWNERDEPARTMENTID = strOwnerDepartmentID; entity.OWNERCOMPANYID = strOwnerCompanyID; entity.CREATEUSERID = strOwnerID; entity.CREATEPOSTID = strOwnerPostID; entity.CREATEDEPARTMENTID = strOwnerDepartmentID; entity.CREATECOMPANYID = strOwnerCompanyID; VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.AddVehicleDispatch(entity) > 0) { return entity.VEHICLEDISPATCHID; } else { string err = "Error"; return err; } } catch (Exception e) { string abc = "<OA>Message=[" + e.Message + "]" + "<OA>Source=[" + e.Source + "]<OA>StackTrace=[" + e.StackTrace + "]<OA>TargetSite=[" + e.TargetSite + "]"; Tracer.Debug(abc); return abc; } }
public List<T_OA_VEHICLEDISPATCH> Gets_VDAndDetail(string sort, string filterString, IList<object> paras) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return vehicleDispatchManagerBll.Gets_VDAndDetail(sort, filterString, paras); }
public int Add_VDRecord(List<T_OA_VEHICLEDISPATCHRECORD> vddList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return vehicleDispatchManagerBll.Add_VDRecord(vddList); }
public List<T_OA_VEHICLEDISPATCHRECORD> Get_VDRecord(string id) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return vehicleDispatchManagerBll.Get_VDRecord(id); }
public T_OA_VEHICLEDISPATCH GetVehicleDispatchById(string entityId) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); T_OA_VEHICLEDISPATCH VehicleDispatchById = vehicleDispatchManagerBll.GetVehicleDispatchById(entityId); return VehicleDispatchById == null ? null : VehicleDispatchById; }
public List <T_OA_VEHICLEDISPATCHRECORD> Get_VDRecord(string id) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return(vehicleDispatchManagerBll.Get_VDRecord(id)); }
public List <T_OA_VEHICLEDISPATCH> Get_VDInfo(string id) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return(vehicleDispatchManagerBll.Get_VDInfo(id)); }
public List<T_OA_VEHICLEDISPATCH> Get_VDInfo(string id) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return vehicleDispatchManagerBll.Get_VDInfo(id); }
public int Add_VDRecord(List <T_OA_VEHICLEDISPATCHRECORD> vddList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return(vehicleDispatchManagerBll.Add_VDRecord(vddList)); }
public int Upd_VDRecord(List<T_OA_VEHICLEDISPATCHRECORD> vddList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.Upd_VDRecord(vddList) != 1) { return -1; } return 1; }
public int Del_VDRecord(List <string> id) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return(vehicleDispatchManagerBll.Del_VDRecord(id)); }
public int Del_VDRecord(List<string> id) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return vehicleDispatchManagerBll.Del_VDRecord(id); }
public List <T_OA_VEHICLEDISPATCH> Gets_VDChecked(int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount, LoginUserInfo loginInfo) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return(vehicleDispatchManagerBll.Gets_VDChecked(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginInfo.userID, "2")); }
public List<T_OA_VEHICLEDISPATCH> Gets_VDChecked(int pageIndex, int pageSize, string sort, string filterString, IList<object> paras, ref int pageCount, LoginUserInfo loginInfo) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return vehicleDispatchManagerBll.Gets_VDChecked(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginInfo.userID, "2"); }
public List <T_OA_VEHICLEDISPATCH> Gets_VDAndDetail(string sort, string filterString, IList <object> paras) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); return(vehicleDispatchManagerBll.Gets_VDAndDetail(sort, filterString, paras)); }
public int AddVehicleDispatch(T_OA_VEHICLEDISPATCH vehicleDispatchInfo) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.AddVehicleDispatch(vehicleDispatchInfo) == 1) { return 1; } return -1; }
public int UpdateVehicleDispatchList(List<T_OA_VEHICLEDISPATCH> vehicleDispatchList) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); foreach (T_OA_VEHICLEDISPATCH obj in vehicleDispatchList) { if (vehicleDispatchManagerBll.UpdateVehicleDispatch(obj) == -1) { return -1; } } return 1; }
/// <summary> /// 根据传回的XML,添加派车记录 /// </summary> /// <param name="xele"></param> private static string VehicledispatchrecordAdd(IEnumerable<XElement> eGFunc) { try { if (eGFunc.Count() == 0) { return ""; } string strEmployeeID = string.Empty; string strOwnerID = string.Empty; string strOwnerPostID = string.Empty; string strOwnerDepartmentID = string.Empty; string strOwnerCompanyID = string.Empty; foreach (var q in eGFunc) { string strName = q.Attribute("Name").Value; switch (strName) { case "CREATEUSERID": strEmployeeID = q.Attribute("Value").Value; break; case "OWNERID": strOwnerID = q.Attribute("Value").Value; break; case "OWNERPOSTID": strOwnerPostID = q.Attribute("Value").Value; break; case "OWNERDEPARTMENTID": strOwnerDepartmentID = q.Attribute("Value").Value; break; case "OWNERCOMPANYID": strOwnerCompanyID = q.Attribute("Value").Value; break; } } string employeeid = strEmployeeID.Replace("{", "").Replace("}", ""); T_OA_VEHICLEDISPATCHRECORD entity = new T_OA_VEHICLEDISPATCHRECORD(); entity.VEHICLEDISPATCHRECORDID = Guid.NewGuid().ToString(); VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); List<T_OA_VEHICLEDISPATCH> vehicleDispatchList = vehicleDispatchManagerBll.Gets_VDAndDetail(string.Empty, string.Empty, null); entity.T_OA_VEHICLEDISPATCHDETAIL = vehicleDispatchList[0].T_OA_VEHICLEDISPATCHDETAIL.FirstOrDefault(); entity.CREATEDATE = DateTime.Now; entity.OWNERID = strOwnerID; entity.OWNERPOSTID = strOwnerPostID; entity.OWNERDEPARTMENTID = strOwnerDepartmentID; entity.OWNERCOMPANYID = strOwnerCompanyID; entity.CREATEUSERID = strOwnerID; entity.CREATEPOSTID = strOwnerPostID; entity.CREATEDEPARTMENTID = strOwnerDepartmentID; entity.CREATECOMPANYID = strOwnerCompanyID; List<T_OA_VEHICLEDISPATCHRECORD> lst = new List<T_OA_VEHICLEDISPATCHRECORD>(); lst.Add(entity); int i = vehicleDispatchManagerBll.Add_VDRecord(lst); if (i > 0) { return entity.VEHICLEDISPATCHRECORDID; } else { string err = "Error"; return err; } } catch (Exception e) { string abc = "<OA>Message=[" + e.Message + "]" + "<OA>Source=[" + e.Source + "]<OA>StackTrace=[" + e.StackTrace + "]<OA>TargetSite=[" + e.TargetSite + "]"; Tracer.Debug(abc); return abc; } }
public int UpdateVehicleDispatch(T_OA_VEHICLEDISPATCH vehicleDispatch) { VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.UpdateVehicleDispatch(vehicleDispatch) == -1) { return -1; } return 1; }