[OperationContract]//获取所有类型名 public List <T_OA_CONTRACTTYPE> GetContractTypeNameInfosToCombox() { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { return(cdb.GetContractTypeNameInfos()); } }
[OperationContract]//删除类型信息 public bool DeleteContraType(string[] contraTypeID) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { return cdb.DeleteContraType(contraTypeID); } }
[OperationContract]//根据条件查询合同类型信息 private bool IsExistContractType(string ContractType, string ContractTypeID) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { return(cdb.IsExistContractType(ContractType, ContractTypeID)); } }
[OperationContract]//根据条件查询合同类型信息 private bool IsExistContractType(string ContractType, string ContractTypeID) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { return cdb.IsExistContractType(ContractType, ContractTypeID); } }
[OperationContract]//删除类型信息 public bool DeleteContraType(string[] contraTypeID) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { return(cdb.DeleteContraType(contraTypeID)); } }
[OperationContract]//根据类型ID获取类型信息 public T_OA_CONTRACTTYPE GetContractTypeById(string contractID) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { T_OA_CONTRACTTYPE MyContract = cdb.GetContractTypeById(contractID); return(MyContract == null ? null : MyContract); } }
[OperationContract]//根据类型ID获取类型信息 public T_OA_CONTRACTTYPE GetContractTypeById(string contractID) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { T_OA_CONTRACTTYPE MyContract = cdb.GetContractTypeById(contractID); return MyContract == null ? null : MyContract; } }
[OperationContract]//获取某合同类型的所有模板名称 public List <T_OA_CONTRACTTYPE> GetContractTypeTemplateNameInfosByContractType(string StrContractType) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { List <T_OA_CONTRACTTYPE> TypeTemplateList = cdb.GetContractTemplateNameInfosByContractType(StrContractType); if (TypeTemplateList == null) { return(null); } else { return(TypeTemplateList); } } }
[OperationContract]//获取所有信息 public List<T_OA_CONTRACTTYPE> GetContractTypeInfo(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { List<T_OA_CONTRACTTYPE> TypeList = cdb.GetInquiryContractType(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID); if (TypeList == null) { return null; } else { return TypeList.ToList(); } } }
[OperationContract]//获取所有信息 public List <T_OA_CONTRACTTYPE> GetContractTypeInfo(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { List <T_OA_CONTRACTTYPE> TypeList = cdb.GetInquiryContractType(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID); if (TypeList == null) { return(null); } else { return(TypeList.ToList()); } } }
public List <V_ContractType> GetContractTypeRoomInfosListBySearch(string StrContractTypeName, string StrID, string strContractLevel) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { List <V_ContractType> ContractTypeTypeList = cdb.GetContractTypeRoomInfosListBySearch(StrContractTypeName, StrID, strContractLevel); if (ContractTypeTypeList == null) { return(null); } else { return(ContractTypeTypeList.ToList()); } } }
[OperationContract]//更新类型信息 public string UpdateContraType(T_OA_CONTRACTTYPE contraTypeInfo) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { string returnStr = ""; if (!this.IsExistContractType(contraTypeInfo.CONTRACTTYPE, contraTypeInfo.CONTRACTLEVEL)) { if (!cdb.UpdateContraType(contraTypeInfo)) { returnStr = "更新数据失败!"; } } else { returnStr = "合同类型信息已经存在,更新数据失败"; } return returnStr; } }
[OperationContract]//添加合同类型信息 public string ContractTypeAdd(T_OA_CONTRACTTYPE contractType) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { string returnStr = ""; if (!this.IsExistContractType(contractType.CONTRACTTYPE, contractType.CONTRACTLEVEL)) { if (!cdb.ContractTypeAdd(contractType)) { returnStr = "添加数据失败"; } } else { returnStr = "合同类型信息已经存在,添加数据失败"; } return(returnStr); } }
[OperationContract]//更新类型信息 public string UpdateContraType(T_OA_CONTRACTTYPE contraTypeInfo) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { string returnStr = ""; if (!this.IsExistContractType(contraTypeInfo.CONTRACTTYPE, contraTypeInfo.CONTRACTLEVEL)) { if (!cdb.UpdateContraType(contraTypeInfo)) { returnStr = "更新数据失败!"; } } else { returnStr = "合同类型信息已经存在,更新数据失败"; } return(returnStr); } }
[OperationContract]//添加合同类型信息 public string ContractTypeAdd(T_OA_CONTRACTTYPE contractType) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { string returnStr = ""; if (!this.IsExistContractType(contractType.CONTRACTTYPE, contractType.CONTRACTLEVEL)) { if (!cdb.ContractTypeAdd(contractType)) { returnStr = "添加数据失败"; } } else { returnStr = "合同类型信息已经存在,添加数据失败"; } return returnStr; } }
public List<V_ContractType> GetContractTypeRoomInfosListBySearch(string StrContractTypeName, string StrID, string strContractLevel) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { List<V_ContractType> ContractTypeTypeList = cdb.GetContractTypeRoomInfosListBySearch(StrContractTypeName, StrID, strContractLevel); if (ContractTypeTypeList == null) { return null; } else { return ContractTypeTypeList.ToList(); } } }
[OperationContract]//获取所有类型名 public List<T_OA_CONTRACTTYPE> GetContractTypeNameInfosToCombox() { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { return cdb.GetContractTypeNameInfos(); } }
[OperationContract]//获取某合同类型的所有模板名称 public List<T_OA_CONTRACTTYPE> GetContractTypeTemplateNameInfosByContractType(string StrContractType) { using (ContractTypeDefinitionBLL cdb = new ContractTypeDefinitionBLL()) { List<T_OA_CONTRACTTYPE> TypeTemplateList = cdb.GetContractTemplateNameInfosByContractType(StrContractType); if (TypeTemplateList == null) { return null; } else { return TypeTemplateList; } } }