Exemplo n.º 1
0
    private void InitModule()
    {
        int id = int.Parse(Request["ID"]);

        FineOffice.Modules.CRM_Grade model = gradeBll.GetModel(t => t.ID == id);

        hiddenID.Text    = model.ID.ToString();
        txtGrade.Text    = model.Grade;
        txtOrdering.Text = model.Ordering.ToString();
        txtRemark.Text   = model.Remark;
    }
Exemplo n.º 2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     FineOffice.Modules.CRM_Grade model = new FineOffice.Modules.CRM_Grade();
     model.Grade    = txtGrade.Text.Trim();
     model.Ordering = int.Parse(txtOrdering.Text);
     model.Remark   = txtRemark.Text.Trim();
     try
     {
         gradeBll.Add(model);
         PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference("subwin_close"));
     }
     catch (Exception ex)
     {
         Alert.ShowInParent(ex.Message);
     }
 }