|  |  |  | 
|---|
|  |  |  | //销售出库/扫条码/直接调webservice | 
|---|
|  |  |  | [Route("SellOut/get_CheckTypeByBarCode_Json")] | 
|---|
|  |  |  | [HttpGet] | 
|---|
|  |  |  | public Object get_CheckTypeByBarCode_Json(string sCode, Int64 sInterID,string HBillType, string sBillNo, string sMaker, Int64 WhID, Int64 SPID, Double sQty, bool sRedBlue, bool SourceFlag, string sSourceBillNo, string sSourceType, Int64 HOWNERID) | 
|---|
|  |  |  | public Object get_CheckTypeByBarCode_Json(string sCode, Int64 sInterID, string HBillType, string sBillNo, string sMaker, Int64 WhID, Int64 SPID, Double sQty, bool sRedBlue, bool SourceFlag, string sSourceBillNo, string sSourceType, Int64 HOWNERID, string HScanStyle) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | //oBar = webserver.get_CheckTypeByBarCode(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, ref DBUtility.ClsPub.sErrInfo); | 
|---|
|  |  |  | string sExpressNumber = ""; | 
|---|
|  |  |  | WebSoBar = oWebs.get_CheckTypeByBarCode_All(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, sExpressNumber, ref DBUtility.ClsPub.sErrInfo); | 
|---|
|  |  |  | WebSoBar = oWebs.get_CheckTypeByBarCode_New(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, sExpressNumber, HScanStyle, ref DBUtility.ClsPub.sErrInfo); | 
|---|
|  |  |  | if (WebSoBar == null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | 
|---|
|  |  |  | objJsonResult.code = "0"; | 
|---|
|  |  |  | objJsonResult.count = 1; | 
|---|
|  |  |  | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; | 
|---|
|  |  |  | objJsonResult.data = oBar; | 
|---|
|  |  |  | objJsonResult.data = WebSoBar; | 
|---|
|  |  |  | return objJsonResult; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //public object get_CheckTypeByBarCode_Json(string sCode, long sInterID, string HBillType, string sBillNo, string sMaker, long WhID, long SPID, double sQty, bool sRedBlue, bool SourceFlag, string sSourceBillNo, string sSourceType, long HOWNERID) | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | //    string hexpressNumber = ""; | 
|---|
|  |  |  | //    this.WebSoBar = this.oWebs.get_CheckTypeByBarCode_All(sCode, sInterID, HBillType, sBillNo, sMaker, WhID, SPID, sQty, sRedBlue, SourceFlag, sSourceBillNo, sSourceType, HOWNERID, hexpressNumber, ref ClsPub.sErrInfo); | 
|---|
|  |  |  | //    bool flag = this.WebSoBar == null; | 
|---|
|  |  |  | //    object result; | 
|---|
|  |  |  | //    if (flag) | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        this.objJsonResult.code = "0"; | 
|---|
|  |  |  | //        this.objJsonResult.count = 0; | 
|---|
|  |  |  | //        this.objJsonResult.Message = ClsPub.sErrInfo; | 
|---|
|  |  |  | //        this.objJsonResult.data = null; | 
|---|
|  |  |  | //        result = this.objJsonResult; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    else | 
|---|
|  |  |  | //    { | 
|---|
|  |  |  | //        this.objJsonResult.code = "0"; | 
|---|
|  |  |  | //        this.objJsonResult.count = 1; | 
|---|
|  |  |  | //        this.objJsonResult.Message = ClsPub.sErrInfo; | 
|---|
|  |  |  | //        this.objJsonResult.data = this.oBar; | 
|---|
|  |  |  | //        result = this.objJsonResult; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //    return result; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 返回出入库条码临时表 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | 
|---|
|  |  |  | List<Model.ClsKf_SellOutBillMain> lsmain = new List<Model.ClsKf_SellOutBillMain>(); | 
|---|
|  |  |  | ListModels oListModels = new ListModels(); | 
|---|
|  |  |  | lsmain = oListModels.getSellOutBillMainByJson(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")); | 
|---|
|  |  |  | lsmain[0].HRedBlueFlag = false; | 
|---|
|  |  |  | string sSourceBillType = lsmain[0].HBillType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | } | 
|---|