Ejemplo n.º 1
0
        protected void cbpInfo_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e)
        {
            switch (e.Parameter)
            {
            case "refresh": BindGrid(); break;

            case "ccbNhaCungCapChanged":
                listReceiptProducts = new List <oImportProduct_TraHangNCC>();
                BindGrid();
                ListSoPhieu();
                break;

            case "ccbSoPhieuChanged":
                listReceiptProducts = new List <oImportProduct_TraHangNCC>();
                ListSoPhieu();
                int NhapKhoID          = int.Parse(ccbSoPhieu.Value.ToString());
                var ListNhapKhoChiTiet = DBDataProvider.ListChiTietNhapKho(NhapKhoID);
                foreach (var prod in ListNhapKhoChiTiet)
                {
                    Insert_Hang(Convert.ToInt32(prod.HangHoaID));
                }
                BindGrid();
                break;

            default: break;
            }
        }