Exemplo n.º 1
0
 /// <summary>
 /// 查看调拨单详情
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void plContent_Press(object sender, EventArgs e)
 {
     try
     {
         if (Form.ToString() == "SMOWMS.UI.AssetsManager.frmAssOrder")
         {
             frmAssTransferDetail frm = new frmAssTransferDetail();
             frm.TOID = lblID.BindDataValue.ToString();
             Form.Show(frm, (MobileForm sender1, object args) => {
                 if (frm.ShowResult == ShowResult.Yes)
                 {
                     ((frmAssTransferRows)Form).Bind();        //重新绑定数据
                 }
             });
         }
         else if (Form.ToString() == "SMOWMS.UI.ConsumablesManager.frmTransferRows")
         {
             frmTransferDetail frm = new frmTransferDetail();
             frm.TOID = lblID.BindDataValue.ToString();
             Form.Show(frm, (MobileForm sender1, object args) => {
                 if (frm.ShowResult == ShowResult.Yes)
                 {
                     ((frmTransferRows)Form).Bind();        //重新绑定数据
                 }
             });
         }
     }
     catch (Exception ex)
     {
         Form.Toast(ex.Message);
     }
 }
Exemplo n.º 2
0
        private void btnDetail_Click(object sender, EventArgs e)
        {
            string itemcode = txtItemcode.Text;
            string rev      = txtRev.Text;
            string mouldno  = cbMouldno.SelectedItem.ToString();

            if (DataChecking.isValidInput(mouldno, itemcode, rev))
            {
                frmTransferDetail detail = new frmTransferDetail(mouldno, itemcode, rev);
                detail.ShowDialog();
            }
        }