public HttpResponseMessage getrkbycodeinstore(string incode, string storageno) { List <PRoStockinInno> list = new List <PRoStockinInno>(); PRoStockinInno inno = new PRoStockinInno(); UserVO userByPk = UserBO.GetUserByPk(base.User.Identity.Name); List <DBData> list2 = StockInBO.rkprodintstore_bybarcode(incode, storageno); foreach (DBData data in list2) { PRoStockinInno item = new PRoStockinInno { Inno = data["inno"].ToString() }; list.Add(item); } return(inno.toJson(list)); }
public HttpResponseMessage getrkrecordbycode(string type, string barcode, string inno) { List <PRoStockinBarcodeModel> list = new List <PRoStockinBarcodeModel>(); PRoStockinBarcodeModel model = new PRoStockinBarcodeModel(); UserVO userByPk = UserBO.GetUserByPk(base.User.Identity.Name); List <DBData> list2 = StockInBO.rkprodintstore_bybarcode(type, barcode, userByPk.Code, inno); foreach (DBData data in list2) { PRoStockinBarcodeModel item = new PRoStockinBarcodeModel { Barcode = data["barcode"].ToString(), Custno = data["custno"].ToString(), Inno = data["inno"].ToString(), Mcode = data["mcode"].ToString(), Mname = data["mname"].ToString(), Qty = Convert.ToDecimal(data["qty"]), Storageno = data["storageno"].ToString(), Zhoushu = Convert.ToInt16(data["zhoushu"]) }; list.Add(item); } return(model.toJson(list)); }