| | |
| | | string status = obj["status"].ToString();//启用状态 |
| | | string uomcode = obj["uomcode"].ToString(); //计量单位编码 |
| | | string quantity = obj["quantity"].ToString(); //基础数量 |
| | | string startdate = obj["startdate"].ToString(); //基础数量 |
| | | string version = obj["version"].ToString(); //基础数量 |
| | | string worklist = obj["worklist"].ToString(); //基础数量 |
| | | string opertype = obj["opertype"].ToString(); //基础数量 |
| | | string startdate = obj["startdate"].ToString(); //启用日期 |
| | | string version = obj["version"].ToString(); //版本号 |
| | | string worklist = obj["worklist"].ToString(); //提交数据 |
| | | string opertype = obj["opertype"].ToString(); //提交类型 |
| | | string username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员 |
| | | List<BomSub> objs = Newtonsoft.Json.JsonConvert.DeserializeObject<List<BomSub>>(worklist); |
| | | mes = ProductModelBLL.AddUpdateBoIventory(bomid,parentpartcode, parentpartname, parentpartspec, status, uomcode, quantity, startdate, version, username, opertype, objs); |
| | |
| | | /// <param name="partcode">产品编码</param> |
| | | /// <param name="routecode">工艺路线编码</param> |
| | | /// <param name="stepcode">工序编码</param> |
| | | /// <param name="steptype">工序类型</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | |
| | | /// <returns></returns> |
| | | [Route(template: "StepSelectEqpList")] |
| | | [HttpGet] |
| | | public HttpResponseMessage StepSelectEqpList(string partcode, string routecode, string stepcode, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | public HttpResponseMessage StepSelectEqpList(string partcode, string routecode, string stepcode,string steptype, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = ProductModelBLL.StepSelectEqpList(partcode, routecode, stepcode, startNum, endNum, prop, order); |
| | | mes = ProductModelBLL.StepSelectEqpList(partcode, routecode, stepcode, steptype, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |