Ejemplo n.º 1
0
 /// <summary>
 /// 添加审阅人事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void imgbtnAddCheck_Click(object sender, EventArgs e)
 {
     if (listCheckUsers.Count >= 4)
     {
         Toast("最多只能添加4位审批人!", ToastLength.SHORT);
     }
     else
     {
         frmCheckOrCCTo frm = new frmCheckOrCCTo();
         frm.isCheck = true;
         this.Show(frm, (MobileForm form, object args) =>
         {
             if (frm.ShowResult == Smobiler.Core.Controls.ShowResult.Yes)
             {
                 if (string.IsNullOrWhiteSpace(frm.userInfo) == false)
                 {
                     string Check = frm.userInfo;
                     if (listCheckUsers.Contains(Check.Split(',')[0]) == true)
                     {
                         Toast("该审批人" + Check.Split(',')[1] + "已在列表中!");
                     }
                     else
                     {
                         //pCheck2.Controls.Remove(imgbtnAddCheck);
                         //pCheck2.Controls.Add(imgbtnAddCheck);
                         addCheckUser = Check;
                         addCheckusers();
                     }
                 }
             }
         });
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 财务审批人
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void imgbtnFCheckers_Click(object sender, EventArgs e)
 {
     if (listFCheckers.Count >= 4)
     {
         Toast("最多只能添加4位财务审批人!", ToastLength.SHORT);
     }
     else
     {
         frmCheckOrCCTo frm = new frmCheckOrCCTo();
         frm.isCTemUser = true;
         Show(frm, (MobileForm form, object args) =>
         {
             if (frm.ShowResult == Smobiler.Core.Controls.ShowResult.Yes)
             {
                 if (string.IsNullOrWhiteSpace(frm.userInfo) == false)
                 {
                     string Check = frm.userInfo;
                     if (listFCheckers.Contains(Check.Split(',')[0]) == true)
                     {
                         Toast("该财务审批人" + Check.Split(',')[1] + "已在列表中!");
                     }
                     else
                     {
                         addFCheck = Check;
                         addFCheckers();
                     }
                 }
             }
         });
     }
 }