示例#1
0
        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");
            }
        }
示例#2
0
        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));
        }
示例#3
0
 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");
 }
示例#4
0
        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);
            }
        }
示例#5
0
 public ReportBC()
 {
     rcore = new ReportCoreLibrary();
     InitializeComponent();
     DataControls.LoadComboBoxData(cmbprovince, DataDefinition.GetArmtownTab(), "ARMNAME", "ARMID");
 }
示例#6
0
 public ReportAddNewPersonForm()
 {
     InitializeComponent();
     dcore = new DataCoreLibrary();
     DataControls.LoadComboBoxData(cbbProvince, DataDefinition.GetArmtownTab().Copy(), "ARMNAME", "ARMID");
 }