| | |
| | | [HttpGet] |
| | | public HttpResponseMessage InventoryFileSelect(string partcode = null, string partname = null, string partspec = null, string stocktypecode = null, string materialtypecode = null, string storehousecode = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | var stu_torgcode = HttpContext.Current.Request.Cookies["stu_torgcode"].Value.ToString(); //所属组织 |
| | | var stu_torgtypecode = HttpContext.Current.Request.Cookies["description"].Value.ToString(); //所属组织类型 |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ProductModelBLL.InventoryFileSelect(partcode, partname, partspec, stocktypecode, materialtypecode, storehousecode, startNum, endNum, prop, order); |
| | | mes = ProductModelBLL.InventoryFileSelect(stu_torgcode, stu_torgtypecode,partcode, partname, partspec, stocktypecode, materialtypecode, storehousecode, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | string uomcode = obj["uomcode"].ToString(); //单位编码 |
| | | string warehousecode = obj["warehousecode"].ToString(); //所属仓库编码 |
| | | string stocktypecode = obj["stocktypecode"].ToString(); //存货类型编码 |
| | | string materialtypecode = obj["materialtypecode"].ToString(); //物料类型编码 |
| | | string minstockqty = obj["minstockqty"].ToString(); //最小库存 |
| | | string maxstockqty = obj["maxstockqty"].ToString(); //最大库存 |
| | | string is_batchno = obj["is_batchno"].ToString(); //是否批次管理 |
| | |
| | | string is_outcheck = obj["is_outcheck"].ToString(); //是否出厂检验 |
| | | var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = ProductModelBLL.AddUpdateInventoryFile(materialid, materialcode, materialname, materialspec, uomcode, warehousecode, stocktypecode, materialtypecode, minstockqty, maxstockqty,is_batchno,is_fifo,is_incheck,is_outcheck, username, OperType); |
| | | mes = ProductModelBLL.AddUpdateInventoryFile(materialid, materialcode, materialname, materialspec, uomcode, warehousecode, stocktypecode, minstockqty, maxstockqty,is_batchno,is_fifo,is_incheck,is_outcheck, username, OperType); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |