예제 #1
0
        /// <summary>
        /// 컨트롤을 셋팅합니다.
        /// </summary>
        private void SetControlnitialize()
        {
            try
            {
                DataTable dtBiz = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter);
                dtBiz.Rows.Add(new object[] { "V_BIZ_CODE", Parm.CurrentUserInformation.BizInfo.BizCode });
                DataSet ds = DataLayer.ExecuteSpDataset("PKG_ZABI01.PR_01", dtBiz, DataLayer.MessageEncoding.Default);
                CboBox.FillComboBoxDataTable(this.cBProject, ds.Tables[0], "PROJECT_NAME", "PROJECT_ID");
                if (ds.Tables[0].Rows.Count > 0)
                {
                    this.cBProject.SelectedIndex = 0;
                }

                DataRow[] r = BizCommon.Parm.mDataTable.dtZx010ms.Select("HEAD = 'ZX000' AND USE_YN = 'Y' AND DETAIL <> ' ' ");

                if (r == null || r.Length <= 0)
                {
                    throw new Exception("더존 서버정보가 없습니다.");
                }

                SQLConnectString = string.Format(SQLConnectString, r[0]["ITEM4"].ToString().Trim()
                                                 , r[0]["ITEM5"].ToString().Trim()
                                                 , r[0]["ITEM6"].ToString().Trim()
                                                 , r[0]["ITEM7"].ToString().Trim());

                //this.dtpFrom.Properties.Mask.EditMask = "(1[9]|2[0-9])\\d\\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ";
                this.dtpFrom.EditValue = DateTime.Now;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
 /// <summary>
 /// 콤보박스를 채움니다.
 /// </summary>
 private void FillComboBox()
 {
     try
     {
         DataTable dtBiz = DataLayer.GetDataTableParameter(DataLayer.DatatableStyle.Parameter);
         dtBiz.Rows.Add(new object[] { "V_BIZ_CODE", Parm.CurrentUserInformation.BizInfo.BizCode });
         DataSet ds = DataLayer.ExecuteSpDataset("PKG_ZABI01.PR_01", dtBiz, DataLayer.MessageEncoding.Default);
         CboBox.FillComboBoxDataTable(this.comboBoxProject, ds.Tables[0], "PROJECT_NAME", "PROJECT_ID");
         if (ds.Tables[0].Rows.Count > 0)
         {
             this.comboBoxProject.SelectedIndex = 0;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }