コード例 #1
0
ファイル: FrmIOSQuery.cs プロジェクト: yendux/BlueCloudHIS1.2
        private void FrmIOSQuery_Load(object sender, EventArgs e)
        {
            DateTime currentTime     = HIS.SYSTEM.PubicBaseClasses.XcDate.ServerDateTime;
            int      currentActYear  = 0;
            int      currentActMonth = 0;

            _accountQuery.GetAccountTime(currentTime, ref currentActYear, ref currentActMonth, (int)_currentDept);
            cobQueryMonth.Text         = currentActMonth.ToString();
            cobQueryYear.Text          = currentActYear.ToString();
            cobQueryType.SelectedIndex = 1;
        }
コード例 #2
0
 private void FrmOrderAccount_Load(object sender, EventArgs e)
 {
     try
     {
         dgrdOrderAccount.AutoGenerateColumns = false;
         DateTime currentTime     = HIS.SYSTEM.PubicBaseClasses.XcDate.ServerDateTime;
         int      currentActYear  = 0;
         int      currentActMonth = 0;
         _accountQuery.GetAccountTime(currentTime, ref currentActYear, ref currentActMonth, _deptId);
         cobAccountMonth.Text = currentActMonth.ToString();
         cobAccountYear.Text  = currentActYear.ToString();
         _drugInfoDt          = StoreFactory.GetQuery(_belongSystem).LoadDrugInfo(_deptId);
         txtDgCode.SetSelectionCardDataSource(_drugInfoDt);
     }
     catch (Exception error)
     {
         MessageBox.Show(error.Message);
     }
 }