| | |
| | | public const Int16 HCusRelationNumberCol = 7; |
| | | public const Int16 HCusRelationNameCol = 8; |
| | | public const Int16 HPropertyIDCol = 9; |
| | | public const Int16 HPropertyNumberCol = 10; |
| | | public const Int16 HSPRemarkCol = 10; //ä»ä½å¤æ³¨ |
| | | public const Int16 HPropertyNameCol = 11; |
| | | public const Int16 HSecUnitIDCol = 12; |
| | | public const Int16 HSecUnitNumberCol = 13; |
| | |
| | | public const Int16 HQuery3Col = 69; |
| | | public const Int16 HQuery4Col = 70; |
| | | public const Int16 HQuery5Col = 71; |
| | | public const Int16 HPropertyNumberCol = 72; |
| | | // |
| | | public const string ModName = "1205"; //åæ®ç±»å |
| | | public string ModCaption = "éå®åºåºå"; //åæ®åç§° |
| | |
| | | grdMain.Rows[i].Cells[HSeOrderInterIDCol].Value = oSub.HSeOrderInterID.ToString(); |
| | | grdMain.Rows[i].Cells[HSeOrderEntryIDCol].Value = oSub.HSeOrderEntryID.ToString(); |
| | | grdMain.Rows[i].Cells[HSeOrderBillNoCol].Value = oSub.HSeOrderBillNo; |
| | | if (oStock.GetInfoByID(oMater.omodel.HSPID)) |
| | | { |
| | | grdMain.Rows[i].Cells[HSPRemarkCol].Value = oStock.omodel.HName; |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[i].Cells[HSPRemarkCol].Value = ""; |
| | | } |
| | | |
| | | i = i + 1; |
| | | } |
| | |
| | | { |
| | | |
| | | // |
| | | grdMain.ColumnCount = 72; //æ»åæ° |
| | | grdMain.ColumnCount = 73; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | //= |
| | | grdMain.Columns[HSPRemarkCol].HeaderText = "ä»ä½æå¼"; |
| | | grdMain.Columns[HSubjoinCol].HeaderText = "产å°"; |
| | | grdMain.Columns[HColorCol].HeaderText = "é¢è²"; |
| | | grdMain.Columns[HEngineNumCol].HeaderText = ""; |
| | |
| | | grdMain.Rows[sRow + i].Cells[HPriceCol].Value = grdMain.Rows[sRow + i].Cells[HSalePriceCol].Value; |
| | | } |
| | | BLL.ClsPub_BLL.SetGridWarehouse(DBUtility.ClsPub.isLong(txtHWHID.Tag), grdMain, HMaterIDCol, sRow + i, HWHIDCol, HWHNameCol, HWHNumberCol); |
| | | if(oStock.GetInfoByID(oMater.omodel.HSPID)) |
| | | { |
| | | grdMain.Rows[sRow + i].Cells[HSPRemarkCol].Value = oStock.omodel.HName; |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[sRow + i].Cells[HSPRemarkCol].Value = ""; |
| | | } |
| | | Sub_RowCount(sRow + i, HQtyCol); |
| | | } |
| | | } |
| | |
| | | { |
| | | DAL.ClsGy_Material_View oMater = new DAL.ClsGy_Material_View(); |
| | | DAL.ClsGy_Unit_View oUnit = new DAL.ClsGy_Unit_View(); |
| | | DAL.ClsGy_StockPlace_View oStock = new DAL.ClsGy_StockPlace_View(); |
| | | DAL.ClsGy_MatePriceCus_Ctl oMatePriceCus = new DAL.ClsGy_MatePriceCus_Ctl(); |
| | | DAL.ClsGy_MateNumRelation_View oRelation = new DAL.ClsGy_MateNumRelation_View(); |
| | | if (oMater.GetInfoByID(DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[HMaterIDCol].Value))) |
| | |
| | | grdMain.Rows[grdMain.CurrentRow.Index].Cells[HPriceCol].Value = grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSalePriceCol].Value; |
| | | } |
| | | EditingControl.Text= grdMain.Rows[grdMain.CurrentRow.Index].Cells[grdMain.CurrentCell.ColumnIndex].Value.ToString() ; |
| | | if (oStock.GetInfoByID(oMater.omodel.HSPID)) |
| | | { |
| | | grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSPRemarkCol].Value = oStock.omodel.HName; |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSPRemarkCol].Value = ""; |
| | | } |
| | | Sub_RowCount(grdMain.CurrentRow.Index, HPriceCol); |
| | | } |
| | | } |
| | |
| | | { |
| | | DAL.ClsGy_Material_View oMater = new DAL.ClsGy_Material_View(); |
| | | DAL.ClsGy_Unit_View oUnit = new DAL.ClsGy_Unit_View(); |
| | | DAL.ClsGy_StockPlace_View oStock = new DAL.ClsGy_StockPlace_View(); |
| | | //DAL.ClsGy_MatePriceCus_Ctl oMatePriceCus = new DAL.ClsGy_MatePriceCus_Ctl(); |
| | | //DAL.ClsGy_MateNumRelation_View oRelation = new DAL.ClsGy_MateNumRelation_View(); |
| | | if (oMater.GetInfoByNumber(DBUtility.ClsPub.isStrNull(oGy_DataInTmp2.grdMain.Rows[i].Cells[HDataMaterNumberCol].Value))) |
| | |
| | | { |
| | | grdMain.Rows[i].Cells[HSalePriceCol].Value = oMater.omodel.HSalePrice.ToString(); |
| | | } |
| | | if (oStock.GetInfoByID(oMater.omodel.HSPID)) |
| | | { |
| | | grdMain.Rows[i].Cells[HSPRemarkCol].Value = oStock.omodel.HName; |
| | | } |
| | | else |
| | | { |
| | | grdMain.Rows[i].Cells[HSPRemarkCol].Value = ""; |
| | | } |
| | | //if (DBUtility.ClsPub.isDoule(grdMain.Rows[grdMain.CurrentRow.Index].Cells[HPriceCol].Value) == 0) |
| | | //{ |
| | | // grdMain.Rows[grdMain.CurrentRow.Index].Cells[HPriceCol].Value = grdMain.Rows[grdMain.CurrentRow.Index].Cells[HSalePriceCol].Value; |