| | |
| | | return; |
| | | string FHMainICMOInterIDr = this.View.OpenParameter.GetCustomParameter("FHMainICMOInterIDr").ToString();//主生产订单主内码 |
| | | FMatrailId = this.View.OpenParameter.GetCustomParameter("FMatrailId").ToString();//物料 |
| | | string sql = string.Format(@"/*dialect*/select a.*,b.FBILLNO FBILLNOs from JIT_MOMaterReadysBill a |
| | | left join T_PRD_MO b on a.FHMainICMOInterIDr=b.FID |
| | | where FCompleteCount1>0 and FHMATERID ='{0}'", FMatrailId); |
| | | string sql = string.Format(@"/*dialect*/ |
| | | SELECT A.*,B.FBILLNO FBILLNOS FROM JIT_MOMATERREADYSBILL A |
| | | LEFT JOIN T_PRD_MO B ON A.FHMAINICMOINTERIDR=B.FID |
| | | WHERE FHICMOINTERID |
| | | NOT IN (SELECT FID FROM SC_WORKBILLSORTBILLMAIN WHERE FDOCUMENTSTATUS IN ('E')) |
| | | AND FCOMPLETECOUNT1>0 |
| | | AND FHMATERID ='{0}' |
| | | ORDER BY FPLANDATE ASC,FHSTOCKQTY DESC |
| | | ", FMatrailId); |
| | | DataTable dt = DBServiceHelper.ExecuteDataSet(this.Context, sql).Tables[0]; |
| | | if (dt.Rows.Count > 0) |
| | | { |