Пример #1
0
 public T_OA_CONTRACTVIEW GetContractViewById(string contractViewID)
 {
     using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL())
     {
         T_OA_CONTRACTVIEW ContractView = cvb.GetContractViewById(contractViewID);
         return ContractView == null ? null : ContractView;
     }
 }
Пример #2
0
        [OperationContract]//查询合同查看申请
        public List<V_ContractView> GetInquiryViewContractApplication(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL())
            {
                List<V_ContractView> ContractViewList = null;
                if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取用户的提交申请信息
                {
                    //List<V_ContractView> ContractViewList = cab.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState);
                    if (checkState != ((int)CheckStates.ALL).ToString())
                    {
                        ContractViewList = cvb.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID);
                    }
                    else
                    {
                        ContractViewList = cvb.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID);
                    }
                    return ContractViewList != null ? ContractViewList.ToList() : null;
                }
                else                    //通过工作流获取用户要审批的申请信息
                {
                    FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T();   //审核人 操作              
                    FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "T_OA_CONTRACTVIEW", loginUserInfo.companyID, loginUserInfo.userID);
                    if (flowList == null)
                    {
                        return null;
                    }
                    List<V_FlowAPP> flowAppList = new List<V_FlowAPP>();
                    for (int i = 0; i < flowList.Length; i++)
                    {

                        V_FlowAPP App = new V_FlowAPP();
                        App.Guid = flowList[i].FLOWRECORDDETAILID;
                        App.FormID = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID;
                        App.EditUserID = flowList[i].EDITUSERID;
                        App.EditUserName = flowList[i].EDITUSERNAME;
                        flowAppList.Add(App);
                    }
                    checkState = ((int)CheckStates.Approving).ToString();

                    ContractViewList = cvb.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID);
                    if (ContractViewList == null)
                    {
                        return null;
                    }
                    else
                    {
                        return ContractViewList.ToList();
                    }
                }
            }
        }
Пример #3
0
 [OperationContract]//(更新合同查看申请)提交审核
 public string UpdateContractView(T_OA_CONTRACTVIEW contractView)
 {
     using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL())
     {
         string result = "";
         if (!cvb.UpdateContractView(contractView))
         {
             result = "更新数据失败!";
         }
         return result;
     }
 }
Пример #4
0
 [OperationContract]//删除申请信息
 public bool DeleteViewapplications(string[] viewapplicationsID)
 {
     using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL())
     {
         return cvb.DeleteViewapplications(viewapplicationsID);
     }
 }
Пример #5
0
        [OperationContract]//添加合同查看申请
        public string ContractViewapplicationsAdd(T_OA_CONTRACTVIEW ContractApplicationView)
        {
            using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL())
            {
                string returnStr = "";

                if (!cvb.ContractViewapplicationsAdd(ContractApplicationView))
                {
                    returnStr = "添加数据失败";
                }
                return returnStr;
            }
        }