Beispiel #1
0
        private void dgSingleMaterial_View_Load(object sender, System.EventArgs e)
        {
            cboMaterialType_Bind(clsParameter1.strM_ID);

            lbl_ID.Text  = clsParameter1.str_ID;
            edtName.Text = clsParameter1.strName;

            edtFlowResistivity_High.Text   = clsParameter1.strFlowResistivity;
            edtThickness_High.Text         = clsParameter1.strThickness;
            edtPoissionsRatio_High.Text    = clsParameter1.strPoissionsRatio;
            edtYoungsModulus_High.Text     = clsParameter1.strYoungsModulus;
            edtLossFactor_High.Text        = clsParameter1.strLossFactor;
            edtBulkDensity_High.Text       = clsParameter1.strBulkDensity;
            edtThermalCharLength_High.Text = clsParameter1.strThermalCharLength;
            edtStructureFactor_High.Text   = clsParameter1.strStructureFactor;
            edtProsity_High.Text           = clsParameter1.strProsity;
            edtViscousCharLength_High.Text = clsParameter1.strViscousCharLength;
            edtVendor.Text    = clsParameter1.strVendor;
            edtProducing.Text = clsParameter1.strProducing;

            dgPassWord dgPassWord1 = new dgPassWord();

            if (dgPassWord1.ShowDialog() == DialogResult.OK)
            {
                edtRemark.Text = clsParameter1.strRemark;
            }
            else
            {
                edtRemark.Text = "권한이 없습니다";
            }
            if (clsParameter1.strDate != "" && clsParameter1.strDate != null)
            {
                dtDate.Value = DateTime.Parse(clsParameter1.strDate);
            }
        }
        private void dgSingleMaterial_View_Load(object sender, System.EventArgs e)
        {
            cboMaterialType_Bind(clsParameter1.strM_ID);

            lbl_ID.Text = clsParameter1.str_ID;
            edtName.Text = clsParameter1.strName;

            edtFlowResistivity_High.Text = clsParameter1.strFlowResistivity;
            edtThickness_High.Text = clsParameter1.strThickness;
            edtPoissionsRatio_High.Text = clsParameter1.strPoissionsRatio;
            edtYoungsModulus_High.Text = clsParameter1.strYoungsModulus;
            edtLossFactor_High.Text = clsParameter1.strLossFactor;
            edtBulkDensity_High.Text = clsParameter1.strBulkDensity;
            edtThermalCharLength_High.Text = clsParameter1.strThermalCharLength;
            edtStructureFactor_High.Text = clsParameter1.strStructureFactor;
            edtProsity_High.Text = clsParameter1.strProsity;
            edtViscousCharLength_High.Text = clsParameter1.strViscousCharLength;
            edtVendor.Text = clsParameter1.strVendor;
            edtProducing.Text = clsParameter1.strProducing;

            dgPassWord dgPassWord1 = new dgPassWord();
            if(dgPassWord1.ShowDialog() == DialogResult.OK)
            {
                edtRemark.Text = clsParameter1.strRemark;
            }
            else
            {
                edtRemark.Text = "������ �����ϴ�";
            }
            if(clsParameter1.strDate != "" && clsParameter1.strDate != null)
            {
                dtDate.Value = DateTime.Parse(clsParameter1.strDate);
            }
        }