Exemplo n.º 1
0
        public frmAZOVSTALEquipmentListModifyDrawingMarks(IDSDesignInfo designInfo)
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "AZOVSTAL高炉项目设备表导出";

            // 按钮位置
            btnApply.Location  = new Point(186, 16);
            btnOK.Location     = new Point(267, 16);
            btnCancel.Location = new Point(348, 16);

            //
            // 图框须修改内容
            //
            chkBoxModifyApprovedBy         = new CheckBox();
            chkBoxModifyApprovedBy.Text    = "室审";
            chkBoxModifyApprovedBy.Checked = false;

            chkBoxModifyCheckedBy         = new CheckBox();
            chkBoxModifyCheckedBy.Text    = "审核";
            chkBoxModifyCheckedBy.Checked = false;

            chkBoxModifyDesignedBy         = new CheckBox();
            chkBoxModifyDesignedBy.Text    = "设计";
            chkBoxModifyDesignedBy.Checked = false;

            chkBoxModifyMadeBy         = new CheckBox();
            chkBoxModifyMadeBy.Text    = "制图";
            chkBoxModifyMadeBy.Checked = false;

            chkBoxModifyProjectID         = new CheckBox();
            chkBoxModifyProjectID.Text    = "项目编码";
            chkBoxModifyProjectID.Checked = false;

            chkBoxModifyDrawingID         = new CheckBox();
            chkBoxModifyDrawingID.Text    = "图号";
            chkBoxModifyDrawingID.Checked = false;

            chkBoxModifySpeciality         = new CheckBox();
            chkBoxModifySpeciality.Text    = "专业";
            chkBoxModifySpeciality.Checked = false;

            chkBoxModifyStage         = new CheckBox();
            chkBoxModifyStage.Text    = "设计阶段";
            chkBoxModifyStage.Checked = false;

            chkBoxModifyDate         = new CheckBox();
            chkBoxModifyDate.Text    = "日期";
            chkBoxModifyDate.Checked = false;

            chkBoxModifyContractNo         = new CheckBox();
            chkBoxModifyContractNo.Text    = "合同编号";
            chkBoxModifyContractNo.Checked = false;

            chkBoxModifyRevision         = new CheckBox();
            chkBoxModifyRevision.Text    = "修改版次";
            chkBoxModifyRevision.Checked = false;

            chkBoxModifyTopLevelNo         = new CheckBox();
            chkBoxModifyTopLevelNo.Text    = "高层代号";
            chkBoxModifyTopLevelNo.Checked = false;

            /*
             * chkBoxLoopNo = new CheckBox();
             * chkBoxLoopNo.Text = "回路号";
             * chkBoxLoopNo.Checked = true;
             * chkBoxTagNo = new CheckBox();
             * chkBoxTagNo.Text = "位号";
             * chkBoxTagNo.Checked = true;
             * chkBoxItems = new CheckBox();
             * chkBoxItems.Text = "检测与控制项目";
             * chkBoxItems.Checked = true;
             * chkBoxEqpType = new CheckBox();
             * chkBoxEqpType.Text = "型号";
             * chkBoxEqpType.Checked = true;
             * chkBoxSupplier = new CheckBox();
             * chkBoxSupplier.Text = "厂家";
             * chkBoxSupplier.Checked = true;
             * chkBoxEqpName = new CheckBox();
             * chkBoxEqpName.Text = "设备名称";
             * chkBoxEqpName.Checked = true;
             * chkBoxMeasuringRangeMin = new CheckBox();
             * chkBoxMeasuringRangeMin.Text = "测量范围最小值";
             * chkBoxMeasuringRangeMin.Checked = true;
             * chkBoxMeasuringRangeMax = new CheckBox();
             * chkBoxMeasuringRangeMax.Text = "测量范围最大值";
             * chkBoxMeasuringRangeMax.Checked = true;
             * chkBoxMeasuringRangeUnit = new CheckBox();
             * chkBoxMeasuringRangeUnit.Text = "测量单位";
             * chkBoxMeasuringRangeUnit.Checked = true;
             * chkBoxInputSignal = new CheckBox();
             * chkBoxInputSignal.Text = "输入信号";
             * chkBoxInputSignal.Checked = true;
             * chkBoxOutputSignal = new CheckBox();
             * chkBoxOutputSignal.Text = "输出信号";
             * chkBoxOutputSignal.Checked = true;
             * chkBoxPowerSupply = new CheckBox();
             * chkBoxPowerSupply.Text = "供电";
             * chkBoxPowerSupply.Checked = true;
             * chkBoxSpec = new CheckBox();
             * chkBoxSpec.Text = "规格";
             * chkBoxSpec.Checked = true;
             * chkBoxQuantity = new CheckBox();
             * chkBoxQuantity.Text = "数量";
             * chkBoxQuantity.Checked = true;
             * chkBoxLocation = new CheckBox();
             * chkBoxLocation.Text = "安装地点";
             * chkBoxLocation.Checked = true;
             * chkBoxOperationRangeMin = new CheckBox();
             * chkBoxOperationRangeMin.Text = "操作数据最小值";
             * chkBoxOperationRangeMin.Checked = true;
             * chkBoxOperationRangeMax = new CheckBox();
             * chkBoxOperationRangeMax.Text = "操作数据最大值";
             * chkBoxOperationRangeMax.Checked = true;
             * chkBoxOperationRangeUnit = new CheckBox();
             * chkBoxOperationRangeUnit.Text = "操作数据单位";
             * chkBoxOperationRangeUnit.Checked = true;
             * chkBoxRemark = new CheckBox();
             * chkBoxRemark.Text = "备注";
             * chkBoxRemark.Checked = true;
             */

            flowLayoutPanelElement.Controls.Add(chkBoxModifyApprovedBy);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyCheckedBy);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyDesignedBy);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyMadeBy);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyProjectID);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyDrawingID);
            flowLayoutPanelElement.Controls.Add(chkBoxModifySpeciality);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyStage);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyDate);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyContractNo);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyRevision);
            flowLayoutPanelElement.Controls.Add(chkBoxModifyTopLevelNo);

            /*
             * flowLayoutPanelElement.Controls.Add(chkBoxEqpType);
             * flowLayoutPanelElement.Controls.Add(chkBoxSupplier);
             *
             * flowLayoutPanelElement.Controls.Add(chkBoxLoopNo);
             * flowLayoutPanelElement.Controls.Add(chkBoxTagNo);
             * flowLayoutPanelElement.Controls.Add(chkBoxItems);
             * flowLayoutPanelElement.Controls.Add(chkBoxEqpName);
             * flowLayoutPanelElement.Controls.Add(chkBoxMeasuringRangeMin);
             * flowLayoutPanelElement.Controls.Add(chkBoxMeasuringRangeMax);
             * flowLayoutPanelElement.Controls.Add(chkBoxMeasuringRangeUnit);
             * flowLayoutPanelElement.Controls.Add(chkBoxInputSignal);
             * flowLayoutPanelElement.Controls.Add(chkBoxOutputSignal);
             * flowLayoutPanelElement.Controls.Add(chkBoxPowerSupply);
             * flowLayoutPanelElement.Controls.Add(chkBoxSpec);
             * flowLayoutPanelElement.Controls.Add(chkBoxQuantity);
             * flowLayoutPanelElement.Controls.Add(chkBoxLocation);
             * flowLayoutPanelElement.Controls.Add(chkBoxOperationRangeMin);
             * flowLayoutPanelElement.Controls.Add(chkBoxOperationRangeMax);
             * flowLayoutPanelElement.Controls.Add(chkBoxOperationRangeUnit);
             * flowLayoutPanelElement.Controls.Add(chkBoxRemark);
             */

            flowLayoutPanelElement.Visible         = true;
            this.groupBoxPorpertySelection.Visible = true;

            //
            // 图框
            //
            tbApprovedBy.Text = designInfo.ApprovedBy;
            tbCheckedBy.Text  = designInfo.CheckedBy;
            tbDesignedBy.Text = designInfo.DesignedBy;
            tbMadeBy.Text     = "";
            tbProjectID.Text  = designInfo.ProjectID;
            tbDrawingID.Text  = designInfo.DrawingID;
            tbSpeciality.Text = designInfo.Speciality;
            tbStage.Text      = designInfo.DesignPhase;
            tbDate.Text       = DateTime.Now.Year.ToString() + "." + DateTime.Now.Month.ToString();
            tbContractNo.Text = "";
            tbRevision.Text   = designInfo.RevisionVersion;
            tbTopLevelNo.Text = "";
            //
            // 文件路径
            //
            tbTemplatePath.Enabled  = true;
            tbTemplatePath.Text     = Application.StartupPath + @"\Template\AZOVSTAL_enu.xlt";
            btnTemplatePath.Visible = false;

            tbDestPath.Enabled  = false;
            tbDestPath.Text     = "";
            btnDestPath.Visible = false;
            //
            // Command Buttons
            //
            this.btnCancel.Text   = "取消(&C)";
            this.btnCancel.Click += btnCancel_Click;
            this.btnOK.Text       = "确定(&O)";
            this.btnOK.Click     += btnOK_Click;
            this.btnApply.Visible = false;
        }
Exemplo n.º 2
0
        public frmAZOVSTALEquipmentList(IDSDesignInfo designInfo)
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "AZOVSTAL高炉项目设备表导出";

            // 按钮位置
            btnApply.Location  = new Point(186, 16);
            btnOK.Location     = new Point(267, 16);
            btnCancel.Location = new Point(348, 16);

            //
            // 版本
            //
            radioBtnLangSimpChinese         = new RadioButton();
            radioBtnLangSimpChinese.Checked = false;
            radioBtnLangSimpChinese.Text    = "中文版";
            radioBtnLangEnglish             = new RadioButton();
            radioBtnLangEnglish.Checked     = true;
            radioBtnLangEnglish.Text        = "英俄文版";
            radioBtnLangSimpChinese.Click  += radioBtnLang_Click;
            radioBtnLangEnglish.Click      += radioBtnLang_Click;

            flowLayoutPanelLanguage.Controls.Add(radioBtnLangSimpChinese);
            flowLayoutPanelLanguage.Controls.Add(radioBtnLangEnglish);

            //
            // 导出内容
            //
            chkBoxLoopNo                     = new CheckBox();
            chkBoxLoopNo.Text                = "回路号";
            chkBoxLoopNo.Checked             = true;
            chkBoxTagNo                      = new CheckBox();
            chkBoxTagNo.Text                 = "位号";
            chkBoxTagNo.Checked              = true;
            chkBoxItems                      = new CheckBox();
            chkBoxItems.Text                 = "检测与控制项目";
            chkBoxItems.Checked              = true;
            chkBoxEqpType                    = new CheckBox();
            chkBoxEqpType.Text               = "型号";
            chkBoxEqpType.Checked            = true;
            chkBoxSupplier                   = new CheckBox();
            chkBoxSupplier.Text              = "厂家";
            chkBoxSupplier.Checked           = true;
            chkBoxEqpName                    = new CheckBox();
            chkBoxEqpName.Text               = "设备名称";
            chkBoxEqpName.Checked            = true;
            chkBoxMeasuringRangeMin          = new CheckBox();
            chkBoxMeasuringRangeMin.Text     = "测量范围最小值";
            chkBoxMeasuringRangeMin.Checked  = true;
            chkBoxMeasuringRangeMax          = new CheckBox();
            chkBoxMeasuringRangeMax.Text     = "测量范围最大值";
            chkBoxMeasuringRangeMax.Checked  = true;
            chkBoxMeasuringRangeUnit         = new CheckBox();
            chkBoxMeasuringRangeUnit.Text    = "测量单位";
            chkBoxMeasuringRangeUnit.Checked = true;
            chkBoxInputSignal                = new CheckBox();
            chkBoxInputSignal.Text           = "输入信号";
            chkBoxInputSignal.Checked        = true;
            chkBoxOutputSignal               = new CheckBox();
            chkBoxOutputSignal.Text          = "输出信号";
            chkBoxOutputSignal.Checked       = true;
            chkBoxPowerSupply                = new CheckBox();
            chkBoxPowerSupply.Text           = "供电";
            chkBoxPowerSupply.Checked        = true;
            chkBoxSpec                       = new CheckBox();
            chkBoxSpec.Text                  = "规格";
            chkBoxSpec.Checked               = true;
            chkBoxQuantity                   = new CheckBox();
            chkBoxQuantity.Text              = "数量";
            chkBoxQuantity.Checked           = true;
            chkBoxLocation                   = new CheckBox();
            chkBoxLocation.Text              = "安装地点";
            chkBoxLocation.Checked           = true;
            chkBoxOperationRangeMin          = new CheckBox();
            chkBoxOperationRangeMin.Text     = "操作数据最小值";
            chkBoxOperationRangeMin.Checked  = true;
            chkBoxOperationRangeMax          = new CheckBox();
            chkBoxOperationRangeMax.Text     = "操作数据最大值";
            chkBoxOperationRangeMax.Checked  = true;
            chkBoxOperationRangeUnit         = new CheckBox();
            chkBoxOperationRangeUnit.Text    = "操作数据单位";
            chkBoxOperationRangeUnit.Checked = true;
            chkBoxRemark                     = new CheckBox();
            chkBoxRemark.Text                = "备注";
            chkBoxRemark.Checked             = true;

            flowLayoutPanelElement.Controls.Add(chkBoxEqpType);
            flowLayoutPanelElement.Controls.Add(chkBoxSupplier);

            /*
             * flowLayoutPanelElement.Controls.Add(chkBoxLoopNo);
             * flowLayoutPanelElement.Controls.Add(chkBoxTagNo);
             * flowLayoutPanelElement.Controls.Add(chkBoxItems);
             * flowLayoutPanelElement.Controls.Add(chkBoxEqpName);
             * flowLayoutPanelElement.Controls.Add(chkBoxMeasuringRangeMin);
             * flowLayoutPanelElement.Controls.Add(chkBoxMeasuringRangeMax);
             * flowLayoutPanelElement.Controls.Add(chkBoxMeasuringRangeUnit);
             * flowLayoutPanelElement.Controls.Add(chkBoxInputSignal);
             * flowLayoutPanelElement.Controls.Add(chkBoxOutputSignal);
             * flowLayoutPanelElement.Controls.Add(chkBoxPowerSupply);
             * flowLayoutPanelElement.Controls.Add(chkBoxSpec);
             * flowLayoutPanelElement.Controls.Add(chkBoxQuantity);
             * flowLayoutPanelElement.Controls.Add(chkBoxLocation);
             * flowLayoutPanelElement.Controls.Add(chkBoxOperationRangeMin);
             * flowLayoutPanelElement.Controls.Add(chkBoxOperationRangeMax);
             * flowLayoutPanelElement.Controls.Add(chkBoxOperationRangeUnit);
             * flowLayoutPanelElement.Controls.Add(chkBoxRemark);
             */

            flowLayoutPanelElement.Visible = true;
            this.groupBox2.Visible         = true;

            //
            // 图框
            //
            tbApprovedBy.Text = designInfo.ApprovedBy;
            tbCheckedBy.Text  = designInfo.CheckedBy;
            tbDesignedBy.Text = designInfo.DesignedBy;
            tbMadeBy.Text     = "";
            tbProjectID.Text  = designInfo.ProjectID;
            tbDrawingID.Text  = designInfo.DrawingID;
            tbSpeciality.Text = designInfo.Speciality;
            tbStage.Text      = designInfo.DesignPhase;
            tbDate.Text       = DateTime.Now.Year.ToString() + "." + DateTime.Now.Month.ToString();
            tbContractNo.Text = "";
            tbRevision.Text   = designInfo.RevisionVersion;
            tbTopLevelNo.Text = "";
            //
            // 文件路径
            //
            tbTemplatePath.Enabled  = true;
            tbTemplatePath.Text     = Application.StartupPath + @"\Template\AZOVSTAL_enu.xlt";
            btnTemplatePath.Visible = false;

            tbDestPath.Enabled  = false;
            tbDestPath.Text     = "";
            btnDestPath.Visible = false;
            //
            // Command Buttons
            //
            this.btnCancel.Text   = "取消(&C)";
            this.btnCancel.Click += btnCancel_Click;
            this.btnOK.Text       = "确定(&O)";
            this.btnOK.Click     += btnOK_Click;
            this.btnApply.Visible = false;
        }