Esempio n. 1
0
 protected void btnUpdateFactureStatus_Click(object sender, EventArgs e)
 {
     if (dvChangeStatus.SelectedValue != null)
     {
         int            factureID   = Convert.ToInt32(dvChangeStatus.SelectedValue);
         AccountFacture f           = AccountFacture.Get(factureID);
         DropDownList   ddlStatuses = (DropDownList)dvChangeStatus.FindControl("ddlStatuses");
         f.StatusID = Convert.ToInt32(ddlStatuses.SelectedValue);
         AccountFacture.Table.Context.SubmitChanges();
         GXGridView1.DataBind();
         mvMain.SetActiveView(viewGrid);
     }
 }
Esempio n. 2
0
 protected void btnPintFacture_Click(object sender, EventArgs e)
 {
     if (GXGridView1SelectedValue > 0)
     {
         AccountFacture f;
         f = AccountFacture.Get(GXGridView1SelectedValue);
         btnNew.CssClass          = "novZapis";
         btnFactureItems.CssClass = "izmeni";
         btnPreview.CssClass      = "osvezi";
         btnReport.CssClass       = "izvestaj";
         btnSearch.CssClass       = "prebaraj";
         btnFactureItems.CssClass = "prikaz";
         btnPintFacture.CssClass  = "pecati_Active";
         btnChangeStatus.CssClass = "izmeni";
         PrintAccountFactures.PrintAccountFacture(f);
     }
 }