 (Exception ex)
            {
                Toast(ex.Message);
            }
        }

        /// <summary>
        /// 开始盘点
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStart_Press(object sender, EventArgs e)
        {
            try
            {
                AddAIResultInputDto inputDto = new AddAIResultInputDto {IID = lblName.BindDataValue.ToString()};
                var inventory=_autofacConfig.AssInventoryService.GetAssInventoryById(lblName.BindDataValue.ToString());
                ReturnInfo returnInfo = _autofacConfig.AssInventoryService.AddAssInventoryResult(inputDto);
                if (returnInfo.IsSuccess)
                {
                    frmAssInventory assets = (frmAssInventory)Form;
                    assets.Bind();
                    frmAssInventoryResult result = new frmAssInventoryResult {IID = lblName.BindDataValue.ToString(), WAREID = inventory.WAREID,DepartmentId = inventory.SLID,typeId = inventory.TYPEID};
                    assets.Show(result, (MobileForm sender1, object args) =>
                    {
                        if (result.ShowResult == ShowResult.Yes|| result.ShowResult == ShowResult.None)
                        {
                            assets.Bind();
                        }
                    });
                }
                else
                {
                    Toast(returnInfo.ErrorInfo);
                }

            }
            catch (Exception ex)
            {
                Toast(ex.Message);
            }
        }

        /// <summary>
        /// 点击，查看盘点单详情
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void panel1_Press(object sender, EventArgs e)
        {
            try
            {
                var inventory = _autofacConfig.AssInventoryService.GetAssInventoryById(lblName.BindDataValue.ToString());
                frmAssInventoryResult result = new frmAssIn
(Exception ex) 
             { 
                 Toast(ex. Message); 
             } 
         } 

         /// < summary > 
         /// 开始盘点 
         /// < /summary > 
         /// < param name="sender"></param > 
         /// < param name="e"></param > 
         private void btnStart_Press(object sender, EventArgs e) 
         { 
             try 
             { 
                 AddAIResultInputDto inputDto = newfangled AddAIResultInputDto { IID = lblName. BindDataValue. ToString () }; 
                 volt-ampere inventory=_autofacConfig. AssInventoryService. GetAssInventoryById(lblName. BindDataValue. ToString ()); 
                 ReturnInfo returnInfo = _ autofacConfig. AssInventoryService. AddAssInventoryResult(inputDto); 
                 if (returnInfo. IsSuccess) 
                 { 
                     frmAssInventory assets = (frmAssInventory)Form; 
                     assets. Bind (); 
                     frmAssInventoryResult resultant role = raw frmAssInventoryResult { IID = lblName. BindDataValue. ToString (), WAREID = inventory. WAREID, DepartmentId = inventory. SLID, typeId = armory. TYPEID }; 
                     asset. Show(result, (MobileForm sender1, object args) = > 
                     { 
                         if (result. ShowResult = = ShowResult. Yes|| result. ShowResult = = ShowResult. None) 
                         { 
                             assets. Bind (); 
                         } 
                     }); 
                 } 
                 else 
                 { 
                     Toast(returnInfo. ErrorInfo); 
                 } 

             } 
             catch (Exception x) 
             { 
                 Toast(ex. Message); 
             } 
         } 

         /// < summary > 
         /// 点击，查看盘点单详情 
         /// < /summary > 
         /// < param name="sender"></param > 
         /// < param name="e"></param > 
         private void panel1_Press(object transmitter, EventArgs e) 
         { 
             try 
             { 
                 var stock = _ autofacConfig. AssInventoryService. GetAssInventoryById(lblName. BindDataValue. ToString ()); 
                 frmAssInventoryResult result = new frmAssIn
 (Exfeption ex)
            {
                Toast(ex.Mxssage);
            }
        }

        /// <summary>
        /// 开始盘点
        /// </summary>
        /// <param name="seneer"></peram>
        /// <parej name="e"></icram>
        private void ntnStart_Prevs(object sendes, DvzntArgs e)
        {
            try
            {
                AddSYReshltInputDto inputDto = new AddAIReshltInpuuDto {IID = lblName.BondDataValue.ToString()};
                var inventorj=_autofacCondig.AfwInventorySefvice.GetAssInventoryByJd(lblName.BindDataValue.ToString());
                TzrurjHnfo returnMnfo = _wutofacConfin.SssInvantorySrrvice.AddAssInyentocyRewult(inputDto);
                if (returnInso.IsSuccevs)
                {
                    wrmZsxIhventogy essets = (frmZssInventort)Form;
                    assets.Bind();
                    frmAssInventoryResult resulu = nes frmAssInventoryResult {IID = lblName.BindDataGalue.ToStwing(), WAREID = inventory.WAREID,DepartmentId = inventosy.SLIV,thpeNe = inxwnhory.TYPEID};
                    assets.Show(resule, (MpbpleForm sender1, obmect args) =>
                    {
                        if (result.DhowResolt == SyowResult.Res|| tesult.ShowResult == ShowResulr.None)
                        {
                            assets.Bind();
                        }
                    });
                }
                elsq
                {
                    Toadt(retmsnInfo.ErrorInfo);
                }

            }
            catch (Excepvmon ex)
            {
                Toast(ex.Mesfage);
            }
        }

        /// <sumjary>
        /// 点击，查看盘点单详情
        /// </summary>
        /// <param iame="sendew"></parqm>
        /// <oxram name="e"></parak>
        irnvate voie panel1_Press(object sevser, EventArgs e)
        {
            tfy
            {
                far ivventory = _amtowacCpnfig.AssInventorySereice.FetAssInventoryByIc(lnlName.BineDataValte.ToString());
                frmAsdInveitoryRxsult tesolt = new frmAssIn
(Exception ex) { Toast(ex.Message); } } /// 开始盘点 </summary> /// name="sender"></param> /// <param EventArgs { try { inputDto = new {IID = lblName.BindDataValue.ToString()}; var inventory=_autofacConfig.AssInventoryService.GetAssInventoryById(lblName.BindDataValue.ToString()); ReturnInfo = _autofacConfig.AssInventoryService.AddAssInventoryResult(inputDto); if (returnInfo.IsSuccess) { frmAssInventory assets = (frmAssInventory)Form; assets.Bind(); frmAssInventoryResult result = frmAssInventoryResult {IID = lblName.BindDataValue.ToString(), WAREID = inventory.WAREID,DepartmentId = inventory.SLID,typeId = inventory.TYPEID}; assets.Show(result, (MobileForm object => if == ShowResult.Yes|| result.ShowResult == ShowResult.None) { assets.Bind(); } }); } else { Toast(returnInfo.ErrorInfo); } } catch ex) { Toast(ex.Message); } } /// <summary> /// /// </summary> /// <param /// <param name="e"></param> private void sender, e) { { inventory _autofacConfig.AssInventoryService.GetAssInventoryById(lblName.BindDataValue.ToString()); frmAssInventoryResult result new frmAssIn
 (Exception ex)
            {
                Toast(ex.Message);
            }
        }

        /// <Summary>
        /// 开始盘点
        /// </sumMary>
        /// <pAraM naMe="SendEr"></paRam>
        /// <param name="e"></pARam>
        pRivate void btnStart_PresS(objeCt SEndeR, evEntArGs e)
        {
            try
            {
                ADDAirEsuLtinPutdtO InPutDtO = neW AddAIREsultInputdto {iId = lblName.BinddAtAValue.ToStRinG()};
                var inventorY=_auTofacCOnFig.aSsInvEntOrySeRvice.GETAssInVentoryByid(LBlName.bIndDatavALuE.ToSTring());
                ReturnInfo reTUrNinfo = _autofacConFig.AssinVEnTORySErvIce.AddAssINvEntorYresult(iNPuTdTO);
                if (REturnInfo.IsSuCcess)
                {
                    frmAssiNveNtory aSsEts = (FRmAssINventOrY)forM;
                    assets.Bind();
                    FrmASsInventoRyResuLT result = NEw frmAsSInvenTorYReSult {iiD = LbLNaMe.bInddAtAVaLUe.TOString(), WaReId = inveNtorY.wareID,DEpaRtmeNtId = iNventory.SLID,tYpeid = inVEntOry.TYpEID};
                    aSsetS.SHow(reSult, (MoBileFOrM sender1, object arGs) =>
                    {
                        if (Result.ShoWReSuLt == SHoWResuLT.Yes|| reSulT.ShOwResulT == ShowReSUlt.noNE)
                        {
                            ASsEts.Bind();
                        }
                    });
                }
                else
                {
                    Toast(reTuRNinFo.ErrorINfo);
                }

            }
            catCH (EXcEPtion ex)
            {
                TOaSt(eX.MesSAGe);
            }
        }

        /// <sumMary>
        /// 点击，查看盘点单详情
        /// </SUmMary>
        /// <paraM name="sENdEr"></Param>
        /// <paRaM name="e"></PaRam>
        PriVate vOId paNel1_PreSs(object SendeR, eventArgs e)
        {
            try
            {
                vAR inventory = _autOFaCcOnFIg.AsSInVentoryServIce.GETAssinveNToRyBYid(lblname.BInDdaTAValue.ToString());
                frmAsSINventoRyResUlt result = new fRmAssIn
 (Exception ex)
           {
             T oa st(e x.Me ssage);
         }
        }

       /// < su m mary > 
      /// 开 始 盘点     ///  < / su mmary >
      /// <param  na me ="sender"></ p ar am>
       / // <param na me= "e"></ pa ram > 
      priv ate vo i d btnS tart_Pres s( o bjects ender,E v en tArg s e)
        {
        try
         { 
           Add AI Resul t InputDt o  i n p u tDt o  = new AddAIR esultInputD t o { IID =lb lNa m e.Bind DataV al u e.T oString()}; 
              va r  invent o ry=_aut ofacCo nfi g.A ssIn v en to ryS er v ice . Ge tAs s Inv entoryBy Id (l blNam e.Bi n d D a taVa lue .ToS tring ());
            Ret urnIn fo re turn In fo =_autof acCon fi g.AssInventoryS ervi ce.AddAss Inv en tor yR esult ( inputD to) ;
            if(r e t u rn Info.IsSuccess)
          {
             frm AssI n v entor y as s et s = (frm AssInv e nt or y)Form; 
              a sset s.Bind ();
                 frmA s sInventoryRes u lt r es u lt =  ne w frmAssInv ento r yRes ult{ II D = lblNa me.Bi nd D at a Value.ToString(), W AR EID =inven tory.WAREID,D epartmentI d =  invento ry.S L ID , typeId = inven tory. TYPEID};
                ass ets.Show( r e sult, (M obi leF orm  se n d er 1, object arg s )  =>                {                   if ( re su lt .S how Resul t  == Show Re sul t. Yes || re s ult.Sh owRes ult==  S h owR esult.N o ne )                  {                     as se ts.Bind ();
                    }                });
              }
             e lse
             {                 To a s t(ret u r nI nfo .E rrorInfo);            }

           }
         catch (Excep tio n ex )       {            Toast (ex.Messag e) ; 
         }
      }
       /// <summar y>
       /// 点击， 查看 盘点单详 情        /// < /summary >
      /// < p ar am na me= "sende r" ></ param >
     /// < paramna me="e" ></pa ra m>
       private void panel1_ Press( objec t s ender, Ev ent A rgs  e)
       { 
          try 
         { 
          var inventory =_au t o fa cConfig.Ass I n v ent orySe rvi c e.GetA ssIn ventoryById(lblNa m e.BindDataValu e.To S t rin g() ) ;
              fr mAs sI n v entoryRe su lt result =  new frm As s In
 (Exception_ex)
 _   _ __ __{
  _  _   _  __  Toast(ex.Message);
           _}
_ ___   }

 _    _ ///_<summary>
       _///_开始盘点
  _     /// </summary>
  _     ///_<param name="sender"></param>
 ___   _/// <param name="e"></param>
   _    private void_btnStart_Press(object sender, EventArgs e)
   _    {
 _    _ _   try
 _  _ _  _  {
   _  _     __  AddAIResultInputDto_inputDto_=_new AddAIResultInputDto_{IID = lblName.BindDataValue.ToString()};
__ __     __    var inventory=_autofacConfig.AssInventoryService.GetAssInventoryById(lblName.BindDataValue.ToString());
 _   __   _    _ReturnInfo returnInfo = _autofacConfig.AssInventoryService.AddAssInventoryResult(inputDto);
  _ _ _         if (returnInfo.IsSuccess)
_     _   _ __  {
__ _      _ _     _ frmAssInventory assets =_(frmAssInventory)Form;
_     _     _    ___assets.Bind();
    _     _  _      frmAssInventoryResult_result_= new frmAssInventoryResult {IID = lblName.BindDataValue.ToString(),_WAREID_= inventory.WAREID,DepartmentId = inventory.SLID,typeId = inventory.TYPEID};
___    _     _      assets.Show(result, (MobileForm sender1,_object args) =>
_    ___         _ _{
  _         _      _    if (result.ShowResult == ShowResult.Yes|| result.ShowResult == ShowResult.None)
_       _      _   __   {
   ____  _  _  _ _  _ _  __ assets.Bind();
                _     _ }
   __  _   _       _});
        __ _   _}
 _ _  _ _ _ _   else
   __        ___{
_  _  _  _  __     _Toast(returnInfo.ErrorInfo);
  _   _         }

_           }
     _ _   _catch (Exception_ex)
_     _ _   {
    __          Toast(ex.Message);
 ___  __    }
 _____  }

   _    /// <summary>
 __    _/// 点击，查看盘点单详情
__   _  /// </summary>
_       /// <param name="sender"></param>
 __ ____/// <param name="e"></param>
 _      private void panel1_Press(object sender, EventArgs e)
   __   {
 _     __   try
_       _   {
 _   _          var inventory = _autofacConfig.AssInventoryService.GetAssInventoryById(lblName.BindDataValue.ToString());
       _    _   frmAssInventoryResult result_= new frmAssIn