Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GXGridView1.TotalRecords = ViewCashReport.SelectCountCached();
         mvMain.SetActiveView(viewGrid);
         reportControl.BranchName  = BrokerHouseInformation.GetBrokerHouseNameByCode(BrokerHouseInformation.FIRST_ROW);
         reportControl.CompanyName = "Брокерско друштво";
     }
 }
Ejemplo n.º 2
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 = ViewCashReport.SelectCountCached();
         GXGridView1.DataBind();
         mvMain.SetActiveView(viewGrid);
     }
 }
Ejemplo n.º 3
0
    protected void btnUpdateStatus_Click(object sender, EventArgs e)
    {
        int id = GXGridView1SelectedValue;

        if (id > 0)
        {
            RadioButtonList rblStatuses = (RadioButtonList)dvChangeStatus.FindControl("rblStatuses");
            CashReport      cr          = CashReport.Get(id);
            if (rblStatuses.SelectedValue == "ODOBRENO")
            {
                cr.CashReportStatusID = CashReportStatuse.GetByCode(CashReportStatuse.ODOBRENO).ID;
            }
            else if (rblStatuses.SelectedValue == "VRATENO")
            {
                cr.CashReportStatusID = CashReportStatuse.GetByCode(CashReportStatuse.VRATENO).ID;
            }
            cr.ApproverUserID = this.PageUser.ID;
            cr.ApproverDate   = DateTime.Now;
            CashReport.Table.Context.SubmitChanges();
            GXGridView1.TotalRecords = ViewCashReport.SelectCountCached();
            GXGridView1.DataBind();
            mvMain.SetActiveView(viewGrid);
        }
    }
Ejemplo n.º 4
0
 protected void DetailsView1_ItemDeleted(object sender, DetailsViewDeletedEventArgs e)
 {
     GXGridView1.TotalRecords = ViewCashReport.SelectCountCached();
     GXGridView1.DataBind();
     mvMain.SetActiveView(viewGrid);
 }