|  |  |  | 
|---|
|  |  |  | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); | 
|---|
|  |  |  | string msg2 = sArray[0].ToString(); | 
|---|
|  |  |  | string msg3 = sArray[1].ToString(); | 
|---|
|  |  |  | string user = sArray[2].ToString();//用户名 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //判断是否有编辑权限 | 
|---|
|  |  |  | if (!DBUtility.ClsPub.Security_Log("Sc_ProcessExchangeBill_Edit", 1, false, user)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "无编辑权限!"; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | bool bResult; | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | BillNew.omodel.HPRDORGID= mainList[0].HPRDORGID;//组织 | 
|---|
|  |  |  | BillNew.omodel.HInterID = mainList[0].HInterID;//递入type得到的单据ID | 
|---|
|  |  |  | BillNew.omodel.HYear = sYear; | 
|---|
|  |  |  | BillNew.omodel.HPeriod = sPeriod; | 
|---|
|  |  |  | 
|---|
|  |  |  | oSub.HFstProc = "否"; | 
|---|
|  |  |  | oSub.HKeyProc = DBUtility.ClsPub.isStrNull(subList[i].HKeyProc); | 
|---|
|  |  |  | oSub.HSupID = DBUtility.ClsPub.isLong(subList[i].HSupID); | 
|---|
|  |  |  | oSub.HSupFlag = DBUtility.ClsPub.isBool(subList[i].HSupFlag); | 
|---|
|  |  |  | oSub.HSupFlag = DBUtility.ClsPub.isBool(subList[i].isEntrust); | 
|---|
|  |  |  | oSub.HBackProc = DBUtility.ClsPub.isBool(subList[i].HBackProc); | 
|---|
|  |  |  | oSub.HEdit = DBUtility.ClsPub.isBool(subList[i].HEdit); | 
|---|
|  |  |  | if (oSub.HCenterID == 0 && oSub.HSupFlag == false) | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <returns>object</returns> | 
|---|
|  |  |  | [Route("Sc_ProcessExchangeBill/GetICMOBillList")] | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public object GetICMOBillList(int hmainid,int OrganizationID) | 
|---|
|  |  |  | public object GetICMOBillList(int hmainid,int HEntryID, int OrganizationID) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ds = oCN.RunProcReturn("select * from h_v_Sc_ICMOBillListDetail where hmainid=" + hmainid, "h_v_Sc_ICMOBillListDetail"); | 
|---|
|  |  |  | ds = oCN.RunProcReturn("select * from h_v_Sc_ICMOBillListDetail where hmainid=" + hmainid + " and HEntryID=" + HEntryID, "h_v_S_Sc_ICMOBillList"); | 
|---|
|  |  |  | if (ds == null || ds.Tables[0].Rows.Count == 0) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <returns>object</returns> | 
|---|
|  |  |  | [Route("Sc_ProcessExchangeBill/GetICMOBillDetail")] | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public object GetICMOBillDetail(int hmainid, int OrganizationID) | 
|---|
|  |  |  | public object GetICMOBillDetail(int hmainid,int HEntryID, int OrganizationID) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ds = oCN.RunProcReturn("select * from h_v_S_Sc_ICMOBillList where hmainid=" + hmainid, "h_v_S_Sc_ICMOBillList"); | 
|---|
|  |  |  | ds = oCN.RunProcReturn("select * from h_v_S_Sc_ICMOBillList where hmainid=" + hmainid + " and HEntryID=" + HEntryID, "h_v_S_Sc_ICMOBillList"); | 
|---|
|  |  |  | if (ds == null || ds.Tables[0].Rows.Count == 0) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|