| | |
| | | DataSet ds; |
| | | DataSet ds1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增单据-保存按钮 |
| | | ///参数:string sql。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | #region 新增单据-保存按钮 |
| | | [Route("Cj_StationInBill/AddBill")] |
| | | [HttpPost] |
| | | public object AddBill([FromBody] JObject oMain) |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //若MAINDI重复则重新获取 |
| | | oCN.BeginTran(); |
| | | |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_MES_StationInBill_QtyCtrl " + HInterID + "", "h_p_MES_StationInBill_QtyCtrl"); |
| | | if (ds == null) |
| | | { |
| | |
| | | } |
| | | return false; |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 工序进站接收单流水号回车获取工序信息 |
| | | ///参数:string sql。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | #region 工序进站接收单流水号回车获取工序信息 |
| | | [Route("Cj_StationInBill/txtHProcNo_KeyDown")] |
| | | [HttpGet] |
| | | public object txtHProcNo_KeyDown(string sBillNo,string sProcNo) |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 返回委外工序接收单列表 |
| | | ///参数:string sql。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | #region 返回委外工序接收单列表 |
| | | [Route("Cj_StationInBill/get_Display")] |
| | | [HttpGet] |
| | | public object get_Display(string sWhere) |
| | |
| | | { |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_MES_StationInBillList " + sWhere, "h_v_MES_StationInBillList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_MES_StationInBillList " + sWhere+ " order by 进站时间 desc", "h_v_MES_StationInBillList"); |
| | | } |
| | | else |
| | | { |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | /// <summary> |
| | | /// 编辑前判断 |
| | | /// </summary> |
| | | #region 编辑前判断 |
| | | [Route("Cj_StationInBill/set_ShowBillJudge")] |
| | | [HttpGet] |
| | | public object set_ShowBillJudge(string HBillNo) |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 编辑页面根据id获取工序进站接收单信息 |
| | | ///参数:string sql。 |
| | | ///返回值:object。 |
| | | /// </summary> |
| | | #region 编辑页面根据id获取工序进站接收单信息 |
| | | [Route("Cj_StationInBill/GetStationInBill")] |
| | | [HttpGet] |
| | | public object GetStationOutBill(int HInterID) |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region [审核] |
| | | #region 审核 |
| | | [Route("Cj_StationInBill/set_CheckBill")] |
| | | [HttpGet] |
| | | public object set_CheckBill(int HInterID,string CurUserName) |