Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GXGridView1.TotalRecords = ViewIncomingFacture.SelectCountCached();
         mvMain.SetActiveView(viewGrid);
         reportControl.BranchName  = BrokerHouseInformation.GetBrokerHouseNameByCode(BrokerHouseInformation.FIRST_ROW);
         reportControl.CompanyName = "Брокерско друштво";
     }
 }
Exemplo n.º 2
0
    protected void btnDelete_Click1(object sender, EventArgs e)
    {
        ClientAccount ca = ClientAccount.GetByClientAndBank(int.Parse(GXGridView1.SelectedDataKey["ClientID"].ToString()), int.Parse(GXGridView1.SelectedDataKey["BankID"].ToString()));

        ca.IsActive = false;
        ClientAccount.Table.Context.SubmitChanges();
        GXGridView1.TotalRecords = ViewIncomingFacture.SelectCountCached();
        GXGridView1.DataBind();
        mvMain.SetActiveView(viewGrid);
    }
Exemplo n.º 3
0
 protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         e.KeepInEditMode   = true;
         ValidationUtility.ShowValidationErrors(this, e.Exception);
     }
     else
     {
         GXGridView1.TotalRecords = ViewIncomingFacture.SelectCountCached();
         GXGridView1.DataBind();
         mvMain.SetActiveView(viewGrid);
     }
 }
Exemplo n.º 4
0
 protected void DetailsView1_ItemDeleted(object sender, DetailsViewDeletedEventArgs e)
 {
     GXGridView1.TotalRecords = ViewIncomingFacture.SelectCountCached();
     GXGridView1.DataBind();
     mvMain.SetActiveView(viewGrid);
 }