| | |
| | | string unitid = obj["id"].ToString(); //往来单位id(主键) |
| | | string unitcode = obj["unitcode"].ToString(); //往来单位编码编码 |
| | | string unitname = obj["unitname"].ToString(); //往来单位名称 |
| | | string mtypecode = obj["mtypecode"].ToString(); //外购供方编码 |
| | | string btypecode = obj["btypecode"].ToString(); //外协供方编码 |
| | | string htypecode = obj["htypecode"].ToString(); //客户编码 |
| | | string typecode = obj["typecode"].ToString(); //单位属性编码 |
| | | string person = obj["person"].ToString(); //联系人 |
| | | string contact = obj["contact"].ToString(); //联系方式 |
| | | string description = obj["description"].ToString(); //补充描述 |
| | | var usercode = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, mtypecode, btypecode,htypecode, person, contact, description, usercode, OperType); |
| | | mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, typecode, person, contact, description, usercode, OperType); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[通过车间编码查找设备信息] |
| | | /// <summary> |
| | | /// 通过车间编码查找设备信息 |
| | | /// </summary> |
| | | /// <param name="wkshpcode">车间编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "WhkspIsEqpSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage WhkspIsEqpSearch(string wkshpcode) |
| | | { |
| | | mes = BasicSettingBLL.WhkspIsEqpSearch(wkshpcode); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |