jhz
2025-01-06 7f5749a601052f1dae48844d03da6c7117dfdea5
增加仓位备注
1个文件已修改
40 ■■■■■ 已修改文件
WarM/仓库管理/Kf_SellOutBill.cs 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/²Ö¿â¹ÜÀí/Kf_SellOutBill.cs
@@ -27,7 +27,7 @@
        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;
@@ -89,6 +89,7 @@
        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 = "销售出库单";          //单据名称
@@ -1154,6 +1155,14 @@
                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;
            }
@@ -1447,9 +1456,10 @@
        {
            
            //
            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 = "";
@@ -1786,6 +1796,14 @@
                                                    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);
                                            }
                                        }
@@ -3151,6 +3169,7 @@
                    {
                        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)))
@@ -3186,6 +3205,14 @@
                                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);
                        }
                    }
@@ -3264,6 +3291,7 @@
                    {
                        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)))
@@ -3300,6 +3328,14 @@
                            {
                                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;