| | |
| | | string HBillNo = mainList[0].HBillNo;//递入type得到的单据号 |
| | | DateTime HDate = mainList[0].HDate;//日期 |
| | | int HYear = DateTime.Now.Year; |
| | | double HPeriod = 1; |
| | | double HPeriod = DateTime.Now.Month; |
| | | string HRemark = mainList[0].HRemark;//备注 |
| | | string HMaker = mainList[0].HMaker;//制单人 |
| | | long HMaterID = mainList[0].HMaterID;//产品ID |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 工艺路线列表 查询系统参数 |
| | | /// <summary> |
| | | /// 返回工艺路线列表 |
| | | ///参数:string sql。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | [Route("LEMS/MES_XT_List")] |
| | | [HttpGet] |
| | | public object MES_XT_List(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | string flag = "flase"; |
| | | string sErrMsg = ""; |
| | | if (oSystemParameter.ShowBill(ref sErrMsg)) |
| | | { |
| | | if (oSystemParameter.omodel.Gy_RoutingBill_SaveAutoLastProc == "Y") |
| | | { |
| | | flag = "true"; |
| | | } |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = ""; |
| | | objJsonResult.data = flag; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没有返回任何记录!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 工艺路线 文件上传 |
| | | [Route("Gy_RoutingBill/Gy_RoutingBillimport")] |
| | | [HttpPost] |