| | |
| | | #endregion |
| | | |
| | | #region[MES工单新增、编辑提交] |
| | | public static ToMessage AddUpdateMesOrder(string mesorderstus, string sourceorder, string ordertype, string mesordercode, string partcode, string mesqty, string routecode, string wkshopcode, string planstartdate, string planenddate, string orderlev, string username, string opertype,string is_aps) |
| | | public static ToMessage AddUpdateMesOrder(string mesorderstus, string sourceorder, string ordertype, string mesordercode, string partcode, string mesqty, string routecode, string wkshopcode, string planstartdate, string planenddate, string orderlev, string username, string opertype) |
| | | { |
| | | var sql = ""; |
| | | var dynamicParams = new DynamicParameters(); |
| | |
| | | CreateDate = DateTime.Now.ToString() |
| | | } |
| | | }); |
| | | if (is_aps == "Y") //是否排程 |
| | | { |
| | | //string sql1 = "select id from TBom_Main where materiel_code='" + PartNumber + "' and status='Y' and version='" + VsionId + "'"; |
| | | //DataTable dt1 = DBHelper.GetTable(sql1); |
| | | } |
| | | |
| | | //if (is_aps == "Y") //是否排程 |
| | | //{ |
| | | // string sql1 = "select id from TBom_Main where materiel_code='" + PartNumber + "' and status='Y' and version='" + VsionId + "'"; |
| | | // DataTable dt1 = DBHelper.GetTable(sql1); |
| | | //} |
| | | |
| | | //增加工单用料表(子件) |
| | | |
| | | bool aa = DapperHelper.DoTransaction(list); |