コード例 #1
0
        private void frmModulePrice_Load(object sender, EventArgs e)
        {
            GridLocalizer.Active = new MyGridLocalizer();
            //loadCostGroup();
            ProductCode = Module.Code;
            this.Text  += ": " + Module.Code;

            using (WaitDialogForm fWait = new WaitDialogForm("Vui lòng chờ trong giây lát...", "Đang load giá vật tư..."))
            {
                if (Module.Code.StartsWith("TPAD"))
                {
                    grdData.DataSource = TextUtils.LoadModulePriceTPAD(Module.Code, true);
                }
                else
                {
                    grdData.DataSource = TextUtils.LoadModulePricePCB(Module.Code);
                }
            }

            txtTotal.EditValue = TextUtils.ToDecimal(colMaTotalPrice.SummaryItem.SummaryValue);
        }