コード例 #1
0
 /// <summary>
 /// 开始盘点
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnStart_Press(object sender, EventArgs e)
 {
     try
     {
         AddCIResultInputDto inputDto = new AddCIResultInputDto {
             IID = lblName.BindDataValue.ToString()
         };
         var        inventory  = _autofacConfig.ConInventoryService.GetConInventoryById(lblName.BindDataValue.ToString());
         ReturnInfo returnInfo = _autofacConfig.ConInventoryService.AddConInventoryResult(inputDto);
         if (returnInfo.IsSuccess)
         {
             //((frmConInventory)Form).Bind();
             frmConInventoryResult result = new frmConInventoryResult();
             result.IID = lblName.BindDataValue.ToString();
             result.lblWareHouse.Tag = inventory.WAREID;
             Form.Show(result, (MobileForm sender1, object args) =>
             {
                 ((frmConInventory)Form).Bind();
             });
         }
         else
         {
             throw new Exception(returnInfo.ErrorInfo);
         }
     }
     catch (Exception ex)
     {
         Form.Toast(ex.Message);
     }
 }
コード例 #2
0
 /// <summary>
 /// 点击行项跳转查看详情
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void plRow_Press(object sender, EventArgs e)
 {
     try
     {
         var inventory = _autofacConfig.ConInventoryService.GetConInventoryById(lblName.BindDataValue.ToString());
         frmConInventoryResult result = new frmConInventoryResult {
             IID = lblName.BindDataValue.ToString(), LocationId = inventory.LOCATIONID
         };
         Form.Show(result, (MobileForm sender1, object args) =>
         {
             if (result.ShowResult == ShowResult.Yes)
             {
                 ((frmConInventory)Form).Bind();
             }
             else if (result.ShowResult == ShowResult.None)
             {
                 ((frmConInventory)Form).Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }
コード例 #3
0
 /// <summary>
 /// 点击行项跳转查看详情
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void plRow_Press(object sender, EventArgs e)
 {
     try
     {
         var inventory = _autofacConfig.ConInventoryService.GetConInventoryById(lblName.BindDataValue.ToString());
         frmConInventoryResult result = new frmConInventoryResult();
         result.IID = lblName.BindDataValue.ToString();
         result.lblWareHouse.Tag = inventory.WAREID;
         Form.Show(result);
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }