public T_OA_VEHICLEUSEAPP GetVehicleUseAppById(string VehicleUseAppId) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); T_OA_VEHICLEUSEAPP VehicleUseAppById = vehicleUseManagerBll.GetVehicleUseAppById(VehicleUseAppId); return(VehicleUseAppById == null ? null : VehicleUseAppById); }
public int AddVehicleUseApp(T_OA_VEHICLEUSEAPP vehicleUseAppInfo) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); if (vehicleUseManagerBll.AddVehicleUseApp(vehicleUseAppInfo)) { return 1; } return -1; }
public List<T_OA_VEHICLEUSEAPP> GetCanUseVehicleUseAppInfoList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); IQueryable<T_OA_VEHICLEUSEAPP> objList= vehicleUseManagerBll.GetCanUseVehicleUseAppInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, "2"); if (objList == null) { return null; } return objList.ToList(); }
public int AddVehicleUseApp(T_OA_VEHICLEUSEAPP vehicleUseAppInfo) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); if (vehicleUseManagerBll.AddVehicleUseApp(vehicleUseAppInfo)) { return(1); } return(-1); }
public int UpdateVehicleUseApp(T_OA_VEHICLEUSEAPP vehicleUseApp) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); if (vehicleUseManagerBll.UpdateVehicleUseApp(vehicleUseApp) == -1) { return(-1); } return(1); }
public List <T_OA_VEHICLEUSEAPP> GetCanUseVehicleUseAppInfoList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); IQueryable <T_OA_VEHICLEUSEAPP> objList = vehicleUseManagerBll.GetCanUseVehicleUseAppInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, "2"); if (objList == null) { return(null); } return(objList.ToList()); }
public int AddVehicleUseAppList(List <T_OA_VEHICLEUSEAPP> vehicleUseAppList) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); foreach (T_OA_VEHICLEUSEAPP obj in vehicleUseAppList) { if (!vehicleUseManagerBll.AddVehicleUseApp(obj)) { return(-1); } } return(1); }
public List <T_OA_VEHICLEUSEAPP> GetVehicleUseAppInfoList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); IEnumerable <T_OA_VEHICLEUSEAPP> infoList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { infoList = vehicleUseManagerBll.GetVehicleInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, checkState); } else//审批人 { ServiceClient workFlowWS = new ServiceClient(); string isView = "1"; if (checkState == "4") { isView = "0"; } FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_VEHICLEUSEAPP", companyId, userId); if (flowList == null) { return(null); } List <string> guidStringList = new List <string>(); foreach (FLOW_FLOWRECORDDETAIL_T f in flowList) { guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID); } if (guidStringList.Count < 1) { return(null); } infoList = vehicleUseManagerBll.GetVehicleInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState); } if (infoList == null) { return(null); } else { return(infoList.ToList()); } }
public List<T_OA_VEHICLEUSEAPP> GetVehicleUseAppInfoList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); IEnumerable<T_OA_VEHICLEUSEAPP> infoList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { infoList = vehicleUseManagerBll.GetVehicleInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, null, checkState); } else//审批人 { ServiceClient workFlowWS = new ServiceClient(); string isView = "1"; if (checkState == "4") { isView = "0"; } FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_VEHICLEUSEAPP", companyId, userId); if (flowList == null) { return null; } List<string> guidStringList = new List<string>(); foreach (FLOW_FLOWRECORDDETAIL_T f in flowList) { guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T .FORMID ); } if (guidStringList.Count < 1) { return null; } infoList = vehicleUseManagerBll.GetVehicleInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState); } if (infoList == null) { return null; } else { return infoList.ToList(); } }
/// <summary> /// 根据传回的XML,添加用车申请 /// </summary> /// <param name="xele"></param> private static string VehicleuseappAdd(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_VEHICLEUSEAPP entity = new T_OA_VEHICLEUSEAPP(); entity.VEHICLEUSEAPPID = Guid.NewGuid().ToString(); 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; VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); if (vehicleUseManagerBll.AddVehicleUseApp(entity)) { return entity.VEHICLEUSEAPPID; } 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 AddVehicleUseAppList(List<T_OA_VEHICLEUSEAPP> vehicleUseAppList) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); foreach (T_OA_VEHICLEUSEAPP obj in vehicleUseAppList) { if (!vehicleUseManagerBll.AddVehicleUseApp(obj)) { return -1; } } return 1; }
public T_OA_VEHICLEUSEAPP Get_VehicleUseApp(string id) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); return vehicleUseManagerBll.Get_VehicleUseApp(id); }
public T_OA_VEHICLEUSEAPP GetVehicleUseAppById(string VehicleUseAppId) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); T_OA_VEHICLEUSEAPP VehicleUseAppById = vehicleUseManagerBll.GetVehicleUseAppById(VehicleUseAppId); return VehicleUseAppById == null ? null : VehicleUseAppById; }
public int UpdateVehicleUseApp(T_OA_VEHICLEUSEAPP vehicleUseApp) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); if (vehicleUseManagerBll.UpdateVehicleUseApp(vehicleUseApp) == -1) { return -1; } return 1; }
public int UpdateVehicleUseAppList(List<T_OA_VEHICLEUSEAPP> vehicleUseAppList) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); foreach (T_OA_VEHICLEUSEAPP obj in vehicleUseAppList) { if (vehicleUseManagerBll.UpdateVehicleUseApp(obj) == -1) { return -1; } } return 1; }
public T_OA_VEHICLEUSEAPP Get_VehicleUseApp(string id) { VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll(); return(vehicleUseManagerBll.Get_VehicleUseApp(id)); }