Ejemplo n.º 1
0
        public static string GetDescription()
        {
            string result = "样本列表";

            switch (GlobalConfigVars.GetDbType(GlobalConfigVars.DbType))
            {
            case SupportedDbType.AggRAM:
                result = "病案号(曲线序号)";
                break;

            case SupportedDbType.Platinum:
                result = "Lis标识(测试类型)";
                break;

            case SupportedDbType.QS2000:
                result = "病案号(扫描序号 - 样本序号)";
                break;

            case SupportedDbType.Spife4000:
                result = "样本列表(胶片号 序号 : 样本号)";
                break;

            default:
                break;
            }
            return(result);
        }
Ejemplo n.º 2
0
 public void ResetDbProvider()
 {
     SetUiText();
     this.DbProvider = GlobalConfigVars.GetDbProvider();
     this.DbExporter = GlobalConfigVars.GetExporter();
     this.lbSelectedSampleId.Items.Clear();
     SetBoldDates();
     RefreshSampleIdList(datePicker1.Value);
 }
Ejemplo n.º 3
0
 private void SettingForm_Load(object sender, EventArgs e)
 {
     // 初始化数据库选项
     this.DbType       = GlobalConfigVars.GetDbType(Properties.Settings.Default.DbType);
     tbDbFolder.Text   = Properties.Settings.Default.DbPath;
     tbExportPath.Text = Properties.Settings.Default.XmlPath;
     numBC0.Value      = Properties.Settings.Default.Blp0;
     numBC1.Value      = Properties.Settings.Default.Blp1;
     numBC2.Value      = Properties.Settings.Default.Blp2;
     numBC3.Value      = Properties.Settings.Default.Blp3;
     numBC4.Value      = Properties.Settings.Default.Blp4;
     numBC5.Value      = Properties.Settings.Default.Blp5;
 }
Ejemplo n.º 4
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (!GlobalConfigVars.IsWellSetting(this.DbType, tbDbFolder.Text, tbExportPath.Text))
            {
                this.DialogResult = DialogResult.None;
                return;
            }

            int[] blps =
            {
                (int)numBC0.Value, (int)numBC1.Value, (int)numBC2.Value,
                (int)numBC3.Value, (int)numBC4.Value, (int)numBC5.Value
            };
            // 保存
            GlobalConfigVars.SaveSetting(this.DbType.ToString(), tbDbFolder.Text, tbExportPath.Text, blps);
        }