示例#1
0
 /// <summary>
 /// 跳转到资产编辑界面
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnEdit_Press(object sender, EventArgs e)
 {
     try
     {
         if (Client.Session["permission"].ToString() == "guest")
         {
             throw new Exception("对不起,您没有修改权限!");
         }
         frmAssetsDetailEdit assetsDetailEdit = new frmAssetsDetailEdit {
             SN = SN
         };
         Show(assetsDetailEdit, (MobileForm sender1, object args) =>
         {
             if (assetsDetailEdit.ShowResult == ShowResult.Yes)
             {
                 ShowResult = ShowResult.Yes;
                 Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }
示例#2
0
 private void btnEdit_Press(object sender, EventArgs e)
 {
     try
     {
         frmAssetsDetailEdit assetsDetailEdit = new frmAssetsDetailEdit {
             AssId = AssId
         };
         Show(assetsDetailEdit, (MobileForm sender1, object args) =>
         {
             if (assetsDetailEdit.ShowResult == ShowResult.Yes)
             {
                 ShowResult = ShowResult.Yes;
                 Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }