Exemple #1
0
 private void LoadLadeAssignment()
 {
     try
     {
         HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory LadeAssignmentFactory = new HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory();
         DataTable LadeAssignmentDataTable = new DataTable();
         LadeAssignmentFactory.GetAll(ref LadeAssignmentDataTable, LadeAssignmentFactory.ServerJalaliDate, 0);
         this.LadeAssignmentGridView.DataSource = LadeAssignmentDataTable;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
 private void AllLatoolStripButton_Click(object sender, EventArgs e)
 {
     try
     {
         HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory LadeAssignmentFactory = new HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory();
         DataTable           LadeAssignmentDataTable = new DataTable();
         Properties.Settings Setting = new HPS.Properties.Settings();
         LadeAssignmentFactory.GetAll(ref LadeAssignmentDataTable, null, Setting.SaloonID_int);
         this.LadeAssignmentGridView.DataSource = LadeAssignmentDataTable;
     }
     catch (Exception ex)
     {
         Hepsa.Core.Common.MessageBox.ErrorMessage(ex.Message);
     }
 }
Exemple #3
0
 private void AllLatoolStripButton_Click(object sender, EventArgs e)
 {
     try
     {
         this.LoadLadeAssignmentCacelRequest();
         LoadLadeAssignmentCancelRequestComment();
         HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory LadeAssignmentFactory = new HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory();
         DataTable LadeAssignmentDataTable = new DataTable();
         LadeAssignmentFactory.GetAll(ref LadeAssignmentDataTable);
         this.LadeAssignmentGridView.DataSource = LadeAssignmentDataTable;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemple #4
0
 private void LoadLadeAssignment()
 {
     try
     {
         HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory LadeAssignmentFactory = new HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory();
         DataTable           LadeAssignmentDataTable = new DataTable();
         Properties.Settings Setting = new HPS.Properties.Settings();
         LadeAssignmentFactory.GetAll(ref LadeAssignmentDataTable, LadeAssignmentFactory.ServerJalaliDate, Setting.SaloonID_int);
         this.LadeAssignmentGridView.DataSource     = LadeAssignmentDataTable;
         this.FromDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LadeAssignmentFactory.ServerJalaliDate);
         this.ToDatefaDatePicker.SelectedDateTime   = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LadeAssignmentFactory.ServerJalaliDate);
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemple #5
0
        private void LoadLadeAssignment()
        {
            try
            {
                HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory LadeAssignmentFactory = new HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory();
                DataTable           LadeAssignmentDataTable = new DataTable();
                Properties.Settings Setting = new HPS.Properties.Settings();
                LadeAssignmentFactory.GetAll(ref LadeAssignmentDataTable, LadeAssignmentFactory.ServerJalaliDate, Setting.SaloonID_int);
                if (HPS.Common.CurrentUser.user.CompanyID_int == null)
                {
                    throw new ApplicationException("شما کاربر شرکت نیستید");
                }
                DataRow[] drSource = null;
                drSource = LadeAssignmentDataTable.Select(String.Format("[CompanyID_int]={0}", HPS.Common.CurrentUser.user.CompanyID_int));
                if (drSource != null && drSource.Length > 0)
                {
                    this.LadeAssignmentGridView.DataSource     = drSource.CopyToDataTable();
                    this.FromDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LadeAssignmentFactory.ServerJalaliDate);
                    this.ToDatefaDatePicker.SelectedDateTime   = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LadeAssignmentFactory.ServerJalaliDate);
                }
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
            //try
            //{
            //    HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory LadeAssignmentFactory = new HPS.BLL.LadeAssignmentBLL.BLLLadeAssignment_TFactory();
            //    Properties.Settings Setting = new HPS.Properties.Settings();
            //    DataTable LadeAssignmentDataTable = new DataTable();

            //    //LadeAssignmentFactory.GetAll(ref Ladeassgnm [LadeAssignment_T].[CompanyID_int], LadeAssignmentFactory.ServerJalaliDate, Setting.SaloonID_int);

            //    var pep = LadeAssignmentFactory.GetAllByCondition(String.Format("[LadeAssignment_T].[CompanyID_int]={0}", HPS.Common.CurrentUser.user.CompanyID_int));
            //    this.LadeAssignmentGridView.DataSource = pep;
            //    this.FromDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LadeAssignmentFactory.ServerJalaliDate);
            //    this.ToDatefaDatePicker.SelectedDateTime = FarsiLibrary.Utils.PersianDateConverter.ToGregorianDateTime(LadeAssignmentFactory.ServerJalaliDate);

            //}
            //catch (System.Exception ex)
            //{
            //    throw ex;
            //}
        }