private int AddConserVation(T_OA_CONSERVATION cvInfo) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); if (cvmBll.AddInfo(cvInfo) == true) { return 1; } return -1; }
[OperationContract] //add by zl public int AddConserVation_i(T_OA_CONSERVATION cvInfo) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); if (cvmBll.AddInfo(cvInfo) == true) { return(1); } return(-1); }
private int DeleteConserVation(T_OA_CONSERVATION cvInfo) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); if (cvmBll.DeleteInfo(cvInfo) == true) { return(1); } return(-1); }
private int DeleteConserVationList(List <T_OA_CONSERVATION> cvInfoList) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); foreach (T_OA_CONSERVATION cvInfo in cvInfoList) { if (cvmBll.DeleteInfo(cvInfo) != true) { return(-1); } } return(1); }
private List <T_OA_CONSERVATION> GetConserVationList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, int pageCount, string companyId, string userId, string checkState) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); IQueryable <T_OA_CONSERVATION> conserVationList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { conserVationList = cvmBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, 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_CONSERVATION", companyId, userId);//ConserVationForm 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); } conserVationList = cvmBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState); } if (conserVationList == null) { return(null); } else { return(conserVationList.ToList()); } }
public IEnumerable <T_OA_CONSERVATIONRECORD> Get_VCRecords(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); IEnumerable <T_OA_CONSERVATIONRECORD> infoList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { infoList = cvmBll.Get_VCRecords(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_CONSERVATIONRECORD", 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 = cvmBll.Get_VCRecords(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID, guidStringList, checkState); } if (infoList == null) { return(null); } else { return(infoList.ToList()); } }
private List<T_OA_CONSERVATION> GetConserVationList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, int pageCount, string companyId, string userId, string checkState) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); IQueryable<T_OA_CONSERVATION> conserVationList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { conserVationList = cvmBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, 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_CONSERVATION", companyId, userId);//ConserVationForm 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; } conserVationList = cvmBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState); } if (conserVationList == null) { return null; } else { return conserVationList.ToList(); } }
public IEnumerable<T_OA_CONSERVATION> Sel_VCCheckeds(int pageIndex, int pageSize, string sort, string filterString, object[] paras, int pageCount, string userId, List<string> guidStringList, string checkState) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return cvmBll.Sel_VCCheckeds(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState); }
private T_OA_CONSERVATION Get_VConserVation(string id) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return cvmBll.Get_VConserVation(id); }
public int Del_VCRecords(List<T_OA_CONSERVATIONRECORD> lst) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return cvmBll.Del_VCRecords(lst); }
public int Upd_VCRecord(T_OA_CONSERVATIONRECORD info) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return cvmBll.Upd_VCRecord(info); }
public IEnumerable<T_OA_CONSERVATIONRECORD> Get_VCRecords(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); IEnumerable<T_OA_CONSERVATIONRECORD> infoList = null; if (checkState != "4")//草稿,审核完成(已过,未过) 建立人操作 { infoList = cvmBll.Get_VCRecords(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_CONSERVATIONRECORD", 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 = cvmBll.Get_VCRecords(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID, guidStringList, checkState); } if (infoList == null) { return null; } else { return infoList.ToList(); } }
private T_OA_CONSERVATIONRECORD Get_VCRecord(string id) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return cvmBll.Get_VCRecord(id); }
private int DeleteConserVationList(List<T_OA_CONSERVATION> cvInfoList) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); foreach (T_OA_CONSERVATION cvInfo in cvInfoList) { if (cvmBll.DeleteInfo(cvInfo) != true) { return -1; } } return 1; }
private T_OA_CONSERVATIONRECORD Get_VCRecord(string id) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return(cvmBll.Get_VCRecord(id)); }
public IEnumerable <T_OA_CONSERVATION> Sel_VCCheckeds(int pageIndex, int pageSize, string sort, string filterString, object[] paras, int pageCount, string userId, List <string> guidStringList, string checkState) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return(cvmBll.Sel_VCCheckeds(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId, guidStringList, checkState)); }
private T_OA_CONSERVATION Get_VConserVation(string id) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return(cvmBll.Get_VConserVation(id)); }
public int Del_VCRecords(List <T_OA_CONSERVATIONRECORD> lst) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return(cvmBll.Del_VCRecords(lst)); }
public int Upd_VCRecord(T_OA_CONSERVATIONRECORD info) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); return(cvmBll.Upd_VCRecord(info)); }
/// <summary> /// 根据传回的XML,添加保养记录 /// </summary> /// <param name="xele"></param> private static string ConservationrecordAdd(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_CONSERVATIONRECORD entity = new T_OA_CONSERVATIONRECORD(); entity.CONSERVATIONRECORDID = Guid.NewGuid().ToString(); ConserVationManagementBll cvmbll = new ConserVationManagementBll(); System.Collections.ObjectModel.ObservableCollection<object> paras = new System.Collections.ObjectModel.ObservableCollection<object>(); List<string> bb = new List<string>(); int iPageCount = 1; List<T_OA_CONSERVATION> conservationList = cvmbll.GetInfoList(1, 1, "UPDATEDATE", string.Empty, null, ref iPageCount, strEmployeeID, new List<string>(), "1").ToList(); entity.T_OA_CONSERVATION = conservationList[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; int i = cvmbll.Add_VCRecord(entity); if (i > 0) { return entity.CONSERVATIONRECORDID; } 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; } }
private int UpdateConserVation(T_OA_CONSERVATION cvInfo) { ConserVationManagementBll cvmBll = new ConserVationManagementBll(); if (cvmBll.UpdateInfo(cvInfo) == -1) { return -1; } return 1; }