private void setControl(String posiId) { dfm = bc.bcDB.dfmDB.selectByPk(posiId); bc.setC1Combo(cboDocGroupName, dfm.doc_group_id); bc.setC1Combo(cboDocGroupSubName, dfm.doc_group_sub_id); txtID.Value = dfm.fm_id; txtFmCode.Value = dfm.fm_code; txtFmName.Value = dfm.fm_name; chkStatusDocMedical.Checked = dfm.status_doc_medical.Equals("1") ? true : false; ChkStatusDocNurse.Checked = dfm.status_doc_nurse.Equals("1") ? true : false; ChkStatusDocAdmision.Checked = dfm.status_doc_adminsion.Equals("1") ? true : false; chkStatusDocOffice.Checked = dfm.status_doc_office.Equals("1") ? true : false; }
private void initConfig() { fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); theme1.Theme = bc.iniC.themeApplication; btnRotate.Click += BtnRotate_Click; bc.bcDB.dgsDB.setCboDgs(cboDgs, ""); btnSave.Click += BtnSave_Click; btnAnalyze.Click += BtnAnalyze_Click; this.FormClosing += FrmScanNewView_FormClosing; //theme1.SetTheme(sb1, "BeigeOne"); //sb1.Text = "aaaaaaaaaa"; txtHn.Value = hn; txtVN.Value = vn; txtPttName.Value = name; txtVisitDate.Value = visitDate; bc.setC1Combo(cboDgs, dgs); if (File.Exists(@filename)) { Image img = Image.FromFile(filename); stream = new MemoryStream(); img.Save(stream, ImageFormat.Jpeg); img.Dispose(); img = Image.FromStream(stream); img1 = img; pic1.Image = img; } }
private void setControl(String posiId) { dgss = bc.bcDB.dgssDB.selectByPk(posiId); bc.setC1Combo(cboDocGroupName, dgss.doc_group_id); txtID.Value = dgss.doc_group_sub_id; txtDocGroupSubName.Value = dgss.doc_group_sub_name; }
private void setControl() { string str = ""; try { str = "00"; dgs = bc.bcDB.dscDB.selectByPk(dscid); bc.bcDB.dgssDB.setCboDGSS(cboDgss, ""); bc.bcDB.dgsDB.setCboDgs(cboDgs, ""); str = "01"; txtID.Value = dgs.doc_scan_id; txtHn.Value = hn; txtVN.Value = dgs.vn; txtAn.Value = dgs.an; txtPttName.Value = name; txtVisitDate.Value = visitDate; txtSort.Value = dgs.sort1; txtFmCode.Value = dgs.ml_fm; //bc.setC1Combo(cboDgs, dgs); txtSortMax.Value = dgs.row_cnt; //txtSortMax.Value = dgs.row_cnt; DocGroupFM docGroupFm1 = new DocGroupFM(); DocGroupFM docGroupFm2 = bc.bcDB.dfmDB.selectByFMCode(this.dgs.ml_fm); if (docGroupFm2.fm_id.Length > 0) { bc.setC1Combo(cboDgs, docGroupFm2.doc_group_id); bc.bcDB.dgssDB.setCboDGSS(cboDgs, docGroupFm2.doc_group_id, ""); bc.setC1Combo(cboDgss, docGroupFm2.doc_group_sub_id); } str = "02"; pic1.Image = img1; btnSaveFmCode.Hide(); btnVoid.Hide(); } catch (Exception ex) { LogWriter logWriter = new LogWriter("e", "FrmScanViewEdit setControl err " + str + " " + ex.Message); } }