Exemplo n.º 1
0
    private void InitModule()
    {
        if (Request["ID"] == null)
        {
            return;
        }

        int id = int.Parse(Request["ID"].ToString());

        txtID.Text = id.ToString();
        FineOffice.Modules.OA_FlowSort model = sortBll.GetModel(d => d.ID == id);
        txtSortNO.Text     = model.SortNO;
        txtSortName.Text   = model.FlowSortName;
        txtPinyinCode.Text = model.PinyinCode;
        txtRemark.Text     = model.Remark;
        chkStop.Checked    = model.Stop.Value;
    }
Exemplo n.º 2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     FineOffice.Modules.OA_FlowSort model = sortBll.GetModel(d => d.ID == int.Parse(txtID.Text));
     model.SortNO       = txtSortNO.Text.Trim();
     model.FlowSortName = txtSortName.Text.Trim();
     model.PinyinCode   = txtPinyinCode.Text.Trim();
     model.Remark       = txtRemark.Text.Trim();
     model.Stop         = chkStop.Checked;
     try
     {
         sortBll.Update(model);
         PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference("subwin_close"));
     }
     catch (Exception ex)
     {
         Alert.ShowInParent(ex.Message);
     }
 }