Ejemplo n.º 1
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);

            layoutManager.Add("PlantCode", InputCreator.DFMemo("厂家标识"));
            layoutManager.Add("CustomTaxRate", new DFValueLabel(mDFInfo.Fields["CustomTaxRate"]));
            var config = new AutoLayoutConfig();

            if (IsNewDialog)
            {
                config.Add("Goods_Name");
            }
            else
            {
                config.Add("Goods_ID");
            }
            config.Add("Goods_Code");
            config.Add("Name");
            config.Add("ProductionDate");
            config.Add("InStoreDate");
            config.Add("InStorePrice");
            config.Add("PlantCode");
            config.Add("Remark");
            config.Add("CustomTaxRate");
            pageLayoutSection.SetRequired("Goods_ID", "Name");
            pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);

            layoutManager.Config = config;
            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 2
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);

            if (mMinGoodsProperty != null)
            {
                if (!string.IsNullOrEmpty(mMinGoodsProperty.GoodsCodeRole))
                {
                    layoutManager.Add("Code", new DFValueLabel());
                }

                if (!string.IsNullOrEmpty(mMinGoodsProperty.GoodsNameRole))
                {
                    layoutManager.Add("Name", new DFValueLabel());
                }
            }

            var config = new AutoLayoutConfig();

            layoutManager.Config = config;
            config.Add("GoodsProperty_ID");
            config.Add("GoodsCategory_ID");

            config.Add("Name");
            config.Add("PrintShortName");
            config.Add("Code");
            config.Add("Spec");
            config.Add("Feature");
            config.Add("Origin");
            config.Add("Brand");
            config.Add("ProductLine_ID");
            config.Add("TaxRate");
            config.Add("MainUnit");
            config.Add("SecondUnit");
            config.Add("MainUnitRatio");
            config.Add("SecondUnitRatio");
            config.Add("UnitConvertDirection");
            config.Add("Barcode");
            config.Add("OuterCode");
            config.Add("SecondUnitII");
            config.Add("SecondUnitII_MainUnitRatio");
            config.Add("SecondUnitII_SecondUnitRatio");
            config.Add("StandPlateNumber");
            config.Add("StandardSecondNumber");
            config.Add("IsSemiGoods");
            config.Add("ProductShift_ID");
            config.Add("PackageModel");

            config.Add("Remark");



            pageLayoutSection.SetRequired("GoodsProperty_ID", "Name", "Code");
            pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);

            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 3
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection section)
        {
            var layoutManager = new LayoutManager("main", mDFInfo, mDFContainer);
            var config        = new AutoLayoutConfig();

            config.Add("Name");
            config.Add("Packing_Attr");
            layoutManager.Config = config;
            section.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);
            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 4
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);
            var config        = new AutoLayoutConfig();

            layoutManager.Config = config;
            config.Add("AccountingUnit_ID");
            config.Add("Department_ID");
            config.Add("Name");
            config.Add("Date");
            config.Add("WorkshopCategory_ID");
            config.Add("Remark");
            pageLayoutSection.SetRequired("AccountingUnit_ID");
            pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);

            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 5
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection section)
        {
            var layoutManager = new LayoutManager("main", mDFInfo, mDFContainer);

            //var config2 = new B3ButcheryConfig();
            //con
            var config = new AutoLayoutConfig();

            config.Add("AccountingUnit_ID");
            config.Add("Date");
            config.Add("Department_ID");
            config.Add("Customer_ID");
            config.Add("Employee_ID");
            config.Add("ProductionUnit_ID");
            config.Add("Remark");
            layoutManager.Config = config;
            section.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);
            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 6
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);

            layoutManager.Add("WorkBill_ID", new B3ButcheryDFIDLink("B3Butchery/Bills/WorkShopPackBill_/WorkShopPackBillEdit.aspx?ID=", mDFInfo.Fields["WorkBill_ID"], mDFInfo.Fields["WorkBill_ID"]));
            var config = new AutoLayoutConfig();

            layoutManager.Config = config;
            config.Add("AccountingUnit_ID");
            config.Add("Department_ID");
            config.Add("Employee_ID");
            config.Add("Date");
            config.Add("WorkBill_ID");
            config.Add("Remark");

            pageLayoutSection.SetRequired("AccountingUnit_ID");
            pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);

            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 7
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);

            var config = new AutoLayoutConfig();

            layoutManager.Config = config;
            config.Add("Name");
            config.Add("Department_ID");
            config.Add("Employee_ID");
            config.Add("DisplayMark");
            config.Add("Packing_Attr");
            config.Add("Packing_Pattern");
            config.Add("ProductShift_Name");
            config.Add("Abbreviation");


            pageLayoutSection.SetRequired("Department_ID", "Name");
            pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);

            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }
Ejemplo n.º 8
0
        protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, PageLayoutSection pageLayoutSection)
        {
            var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);

            layoutManager.Add("CustomerAddress", new DFTextBox(mDFInfo.Fields["CustomerAddress"]));
            var config = new AutoLayoutConfig();

            layoutManager.Config = config;
            config.Add("AccountingUnit_ID");
            config.Add("Date");
            config.Add("Department_ID");
            config.Add("Customer_ID");
            config.Add("Employee_ID");
            config.Add("ProductionUnit_ID");
            config.Add("CustomerAddress");
            config.Add("Remark");

            pageLayoutSection.SetRequired("AccountingUnit_ID");
            pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);

            titlePanel.Controls.Add(layoutManager.CreateLayout());
        }