private void LoadControlsValue() { if (cbbArmtown.DataSource == null) { DataControls.LoadComboBoxData(cbbArmtown, DataDefinition.GetArmtownTab(), "ARMNAME", "ARMID"); } if (cbbOrigin.DataSource == null) { DataControls.LoadComboBoxData(cbbOrigin, DataDefinition.GetOriginTab(), "origin", "origincode", "1"); } }
public ProcessPersonCardForm() { InitializeComponent(); searchPersonNivyInputControl1.SearchButtonClick += new EventHandler(SearchPersonNivy_ButtonSubmitClick); DataControls.LoadComboBoxData(cbbArmtown, DataDefinition.GetArmtownTab(), "ARMNAME", "ARMID"); dcoreSearch = new DataCoreLibrary(System.Configuration.ConfigurationManager.ConnectionStrings["midb"].ConnectionString); dcoreSave = new DataCoreLibrary(); tableImages.Columns.Add("no", typeof(int)); tableImages.Columns.Add("name", typeof(string)); tableImages.Columns.Add("size", typeof(string)); }
public SearchPersonForm() { InitializeComponent(); mtxtYearin.Focus(); mtxtYearin.SelectAll(); mTextBoxID8.SelectAll(); textBoxID13.SelectAll(); textBoxRunNum.SelectAll(); textBoxName.SelectAll(); textBoxSname.SelectAll(); cbbCompany.SelectAll(); cbbBatt.SelectAll(); setBattCompanyValue(); AddEnterKeyDown(); btnNextPage.Enabled = false; btnPrevPage.Enabled = false; GVsSetAutoSizeColumns(); pgroup = PersonGroups.Prepare; DataControls.LoadComboBoxData(cbbProvince, DataDefinition.GetArmtownTab(), "ARMNAME", "ARMID"); }
private void btnCreateFolder_Click(object sender, EventArgs e) { string newFolder = ""; newFolderCreated = 0; DataTable dt = DataDefinition.GetArmtownTab(); try { foreach (DataRow dr in dt.Rows) { newFolder = path + "\\" + dr["ARMNAME"].ToString() + "_" + dr["ARMID"].ToString().Substring(0, 2); if (!System.IO.Directory.Exists(newFolder)) { System.IO.Directory.CreateDirectory(newFolder); newFolderCreated += 1; } } } catch (Exception ex) { MessageBox.Show("ERROR at [" + newFolder + "] .. " + ex.Message); } }
public ReportBC() { rcore = new ReportCoreLibrary(); InitializeComponent(); DataControls.LoadComboBoxData(cmbprovince, DataDefinition.GetArmtownTab(), "ARMNAME", "ARMID"); }
public ReportAddNewPersonForm() { InitializeComponent(); dcore = new DataCoreLibrary(); DataControls.LoadComboBoxData(cbbProvince, DataDefinition.GetArmtownTab().Copy(), "ARMNAME", "ARMID"); }