Example #1
0
        public int SubmitCompanyDocFlow(T_OA_SENDDOC obj, SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T flowRecordInfo, string toUserId)
        {
            using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
            {
                SendDocBll.BeginTransaction();

                string nRet = this.SendDocAdd(obj); //添加公文文档信息
                if (nRet != "")
                {
                    SendDocBll.RollbackTransaction();
                    return(-1);
                }
                //if (workFlowWS.StartFlow(flowRecordInfo, "", toUserId, "Add") != "OK")
                //{
                //    SendDocBll.RollbackTransaction();
                //    return -1;
                //}
                SendDocBll.CommitTransaction();
                return(1);
            }
        }
Example #2
0
        public int SubmitCompanyDocFlow(T_OA_SENDDOC obj, FLOW_FLOWRECORDDETAIL_T flowRecordInfo, string toUserId)
        {
            using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
            {
                SendDocBll.BeginTransaction();

                string nRet = this.SendDocAdd(obj); //添加公文文档信息
                if (nRet != "")
                {
                    SendDocBll.RollbackTransaction();
                    return -1;
                }
                //if (workFlowWS.StartFlow(flowRecordInfo, "", toUserId, "Add") != "OK")
                //{
                //    SendDocBll.RollbackTransaction();
                //    return -1;
                //}
                SendDocBll.CommitTransaction();
                return 1;
            }
        }