コード例 #1
0
        private void button_OK_Click(object sender, EventArgs e)
        {
            Debug.Assert(this.AppInfo != null, "");

#if NO
            this.AppInfo.SetString(
                "binding_form",
                "accept_batchno",
                this.textBox_general_acceptBatchNo.Text);
#endif
            // 批次号需要保存到默认值模板
            EntityFormOptionDlg.SetFieldValue("quickRegister_default",
                                              "batchNo",
                                              this.textBox_general_batchNo.Text);

            this.AppInfo.SetString(
                "binding_form",
                "splitter_direction",
                this.comboBox_ui_splitterDirection.Text);

            // 显示订购信息坐标值
            this.AppInfo.SetBoolean(
                "binding_form",
                "display_orderinfoxy",
                this.checkBox_ui_displayOrderInfoXY.Checked);

            // 显示分馆外订购信息
            this.AppInfo.SetBoolean(
                "binding_form",
                "display_lockedOrderGroup",
                this.checkBox_ui_displayLockedOrderGroup.Checked);

            // 册格子内容行
            if (this.m_bCellContentsChanged == true)
            {
                string strLinesCfg = GetCellContentList();
                string strDefault  = string.Join(",", this.DefaultTextLineNames);
                if (strLinesCfg == strDefault)
                {
                    strLinesCfg = "";
                }

                this.AppInfo.SetString(
                    "binding_form",
                    "cell_lines_cfg",
                    strLinesCfg);
            }

            // 组格子内容行
            if (this.m_bGroupContentsChanged == true)
            {
                string strLinesCfg = GetGroupContentList();
                string strDefault  = string.Join(",", this.DefaultGroupTextLineNames);
                if (strLinesCfg == strDefault)
                {
                    strLinesCfg = "";
                }

                this.AppInfo.SetString(
                    "binding_form",
                    "group_lines_cfg",
                    strLinesCfg);
            }

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
コード例 #2
0
 private void textBox_general_acceptBatchNo_Leave(object sender, EventArgs e)
 {
     EntityFormOptionDlg.SetFieldValue("quickRegister_default",
                                       "batchNo",
                                       this.textBox_general_batchNo.Text);
 }