public UC_BangKeTheoHangHoa(frmSoDuDauKy _frm)
 {
     InitializeComponent();
     gridView1.Invalidate();
     gridView1.IndicatorWidth = 40;
     dateTu.DateTime          = DateTime.Now;
     dateDen.DateTime         = DateTime.Now;
     gridControl1.DataSource  = new KYKHOController().sp_HangHoaDauKy(dateTu.DateTime, dateDen.DateTime);
     frmsodudauky             = _frm;
 }
Esempio n. 2
0
 public UC_BangKeTheoKy(frmSoDuDauKy _frm)
 {
     InitializeComponent();
     ReadXml_User();
     dateTu.DateTime  = DateTime.Now;
     dateDen.DateTime = DateTime.Now;
     gridView1.Invalidate();
     gridView1.IndicatorWidth = 40;
     gridControl1.DataSource  = new KYKHOController().sp_BangKeDauKy(dateTu.DateTime, dateDen.DateTime);
     main_form = _frm;
 }
Esempio n. 3
0
 public UC_CongNoDauKyKH(frmSoDuDauKy _frm)
 {
     InitializeComponent();
     gridView1.Invalidate();
     gridView1.IndicatorWidth = 40;
     gridLookUpEdit1.Properties.DataSource    = GetCUSTOMER_GROUP();
     gridLookUpEdit1.Properties.DisplayMember = "Customer_Group_Name";
     gridLookUpEdit1.Properties.ValueMember   = "Customer_Group_ID";
     gridLookUpEdit1.Properties.BestFitMode   = BestFitMode.BestFitResizePopup;
     gridControl1.DataSource = CUSTOMER_DEBT_GetListInit(gridLookUpEdit1View.GetFocusedRowCellDisplayText("Customer_Group_ID"));
     frmsodudauky            = _frm;
 }
Esempio n. 4
0
        public UC_THTonKho(frmSoDuDauKy _frm, string PhieuDK)
        {
            InitializeComponent();
            gridView1.Invalidate();
            gridView1.IndicatorWidth = 40;
            barSubItem1.Enabled      = false;
            barButtonItem4.Enabled   = false;
            barButtonItem5.Enabled   = false;
            InitLookUpKhoHang();
            ReadXml_User();
            dateNgayTao.DateTime = DateTime.Now;
            repositoryItemGridLookUpEdit1.DataSource    = new PRODUCTController().PRODUCT_GetLookupByStock_SALE();
            repositoryItemGridLookUpEdit1.DisplayMember = "Product_ID";
            repositoryItemGridLookUpEdit1.ValueMember   = "Product_Name";
            repositoryItemGridLookUpEdit1.BestFitMode   = BestFitMode.BestFitResizePopup;
            dtable.Columns.Add("Product_ID");
            dtable.Columns.Add("ProductName");
            dtable.Columns.Add("Stock_Name");
            dtable.Columns.Add("Unit_Name");
            dtable.Columns.Add("Quantity", typeof(double));
            dtable.Columns.Add("UnitPrice", typeof(double));
            dtable.Columns.Add("Amount", typeof(double));
            dtable = new STOCK_INWARD_DETAILController().STOCK_INWARD_DETAIL_GetList_ByID(PhieuDK);
            gridControl1.DataSource = dtable;
            txtPhieuDK.Text         = CreatePhieuDK();
            repositoryItemLookUpEdit1.Properties.DataSource  = new UNITController().UNIT_GetList();
            repositoryItemLookUpEdit1.Properties.ValueMember = "Unit_Name";//tìm theo
            repositoryItemLookUpEdit1.Properties.BestFitMode = BestFitMode.BestFitResizePopup;

            // Enable auto completion search mode.
            repositoryItemLookUpEdit1.Properties.SearchMode = SearchMode.AutoComplete;
            // Specify the column against which to perform the search.
            repositoryItemLookUpEdit1.Properties.AutoSearchColumnIndex = 1;
            repositoryItemGridLookUpEdit1.DataSource    = new PRODUCTController().PRODUCT_GetLookupByStock_SALE_Stock(lookUpKhoNhap.GetColumnValue("Stock_ID").ToString());
            repositoryItemGridLookUpEdit1.DisplayMember = "Product_ID";
            repositoryItemGridLookUpEdit1.ValueMember   = "Product_ID";
            repositoryItemGridLookUpEdit1.BestFitMode   = BestFitMode.BestFitResizePopup;
            repositoryItemGridLookUpEdit1View.RowClick += new DevExpress.XtraGrid.Views.Grid.RowClickEventHandler(repositoryItemGridLookUpEdit1View_click);
        }