|  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | string sErrMsg = ""; | 
|---|
|  |  |  | bool sBool = false; | 
|---|
|  |  |  | oView = webserver.get_InfoByBarCode_Source(sBarCode, sInterID, ref sBool, ref sErrMsg); | 
|---|
|  |  |  | 
|---|
|  |  |  | string msg1 = _value.ToString(); | 
|---|
|  |  |  | try | 
|---|
|  |  |  | { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>(); | 
|---|
|  |  |  | ListModels oListModels = new ListModels(); | 
|---|
|  |  |  | lsmain = oListModels.getICStockBillMainByJson(msg1); | 
|---|
|  |  |  | 
|---|
|  |  |  | List<Model.ClsKf_OtherInBillMain> lsmain = new List<Model.ClsKf_OtherInBillMain>(); | 
|---|
|  |  |  | ListModels oListModels = new ListModels(); | 
|---|
|  |  |  | lsmain = oListModels.getOtherInBillMainByJson(msg1); | 
|---|
|  |  |  | lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); | 
|---|
|  |  |  | lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); | 
|---|
|  |  |  | //lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); | 
|---|
|  |  |  | //lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); | 
|---|
|  |  |  | string sSourceBillType = lsmain[0].HBillType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | WebAPI.WebS.ClsKf_OtherInBillMain websLsmain = new WebS.ClsKf_OtherInBillMain(); | 
|---|
|  |  |  | 
|---|
|  |  |  | websLsmain.HMaker = lsmain[0].HMaker; | 
|---|
|  |  |  | websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; | 
|---|
|  |  |  | websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; | 
|---|
|  |  |  | websLsmain.HKeeperID = lsmain[0].HKeeperID; | 
|---|
|  |  |  | websLsmain.HBillType = "1203";//固定值 | 
|---|
|  |  |  | websLsmain.HBillSubType = lsmain[0].HBillSubType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | WebS.WebService1 oWebs = new WebS.WebService1(); | 
|---|
|  |  |  | WebS.ClsXt_SystemParameterMain oSystemParameterMain = new WebS.ClsXt_SystemParameterMain(); | 
|---|
|  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | objJsonResult.Message = "生成其他入库单成功!单据号为:"; | 
|---|
|  |  |  | objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //成功! | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 0; | 
|---|
|  |  |  | objJsonResult.Message = "上传失败!" + DBUtility.ClsPub.sErrInfo; | 
|---|
|  |  |  | objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //失败! | 
|---|
|  |  |  | //objJsonResult.Message = "上传失败!" + DBUtility.ClsPub.sErrInfo; | 
|---|
|  |  |  | objJsonResult.data = null; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|