예제 #1
0
 private void Load_Data()
 {
     try
     {
         grcKhachHangBaoTruoc.DataSource = Util.ConvertToDataTable(DAL_QLCustomer.Get_List_Customer(Variable.orderByCreatedAt));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
        private void uc_Add_Customer_Load(object sender, EventArgs e)
        {
            SetDataCbbCategory();
            List <Model.Friend> lst_friend = new List <Model.Friend>();

            grcAddFriend.DataSource = Util.ConvertToDataTable(lst_friend);
        }
예제 #3
0
        private void uc_thongkedoanhthu_Load(object sender, EventArgs e)
        {
            SplashScreenManager.ShowDefaultWaitForm();
            Load_Data();
            SplashScreenManager.CloseDefaultWaitForm();
            SetDataCbbYear();
            List <Model.Statistic> statistic = DAL_Thongke.Get_List_Customer_By_Month();

            grcStatistic.DataSource = Util.ConvertToDataTable(statistic);
        }
예제 #4
0
 private void Load_Data()
 {
     try
     {
         grcUser.DataSource = Util.ConvertToDataTable(Dal_User.Get_List_User());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
예제 #5
0
 private void Load_Data()
 {
     try
     {
         grcHistoryPaid.DataSource = Util.ConvertToDataTable(DAL_Lichsutratien.Get_List_History_Paid());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
예제 #6
0
 private void Load_Data()
 {
     try
     {
         grcCategory.DataSource = Util.ConvertToDataTable(DAL_QLCategory.Get_List_Category());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
예제 #7
0
 private void Load_Data()
 {
     try
     {
         grcLaiSuat.DataSource = Util.ConvertToDataTable(DAL_QLLaiSuat.Get_List_InterestRate());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
예제 #8
0
 private void uc_Lichsuthanhtoan_Load(object sender, EventArgs e)
 {
     try
     {
         grcLichsu.DataSource = Util.ConvertToDataTable(DAL_LichSuTraTien.Get_List_History_Paid(idCustomer));
     }
     catch (Exception)
     {
         Util.Show_Message_Notification(Message.msg_notification, "Không thể kết nối đến cơ sở dữ liệu !!!");
     }
 }
예제 #9
0
 private void uc_List_Friend_Load(object sender, EventArgs e)
 {
     try
     {
         List <Model.Friend> lst_friend = DAL_QLCustomer.get_list_friend(idCustomer);
         grcFriend.DataSource = Util.ConvertToDataTable(lst_friend);
     }
     catch (Exception)
     {
         Util.Show_Message_Notification(Message.msg_notification, "Không thể kết nối đến cơ sở dữ liệu !!!");
     }
 }
예제 #10
0
 private void Load_Data()
 {
     try
     {
         txt_total_customer.Text         = Util.formatMoney(DAL_Thongke.Get_Total_Customer());
         txt_total_money.Text            = Util.formatMoney(Convert.ToInt32(DAL_Thongke.Get_Total_Money()));
         txt_tien_thu.Text               = Util.formatMoney(Convert.ToInt32(DAL_Thongke.Get_Total_Money_Paid("0") + DAL_Thongke.Get_Total_Money_Paid("1")));
         grcDanhSachKhachHang.DataSource = Util.ConvertToDataTable(DAL_QLCustomer.Get_List_Customer(Variable.orderByCreatedAt));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #11
0
 private void Load_Data()
 {
     try
     {
         int no = 0;
         var lst_customer_no = DAL_QLCustomer.Get_List_Customer(Variable.orderByAfterDate);
         foreach (var item in lst_customer_no)
         {
             no += Convert.ToInt32(DAL_LichSuTraTien.Get_Tien_Lai(item.id));
         }
         txt_money_day.Text      = Util.formatMoney(no);
         txt_tien_thu_day.Text   = Util.formatMoney(Convert.ToInt32(DAL_Thongke.Get_Money_Thu_Day()));
         grcKhachHang.DataSource = Util.ConvertToDataTable(DAL_QLCustomer.Get_List_Customer(Variable.orderByAfterDate));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }