Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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 frmAssInventoryResult {
             IID = lblName.BindDataValue.ToString(), WAREID = inventory.WAREID, DepartmentId = inventory.SLID, typeId = inventory.TYPEID
         };
         frmAssInventory frmAssInventory = (frmAssInventory)Form;
         frmAssInventory.Show(result, (MobileForm sender1, object args) =>
         {
             if (result.ShowResult == ShowResult.Yes || result.ShowResult == ShowResult.None)
             {
                 frmAssInventory.Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }
Exemplo n.º 3
0
        private void changePage(string page)
        {
            if (this.Form.Name == "frmAssets")
            {
                switch (page)
                {
                case "SNAssets":
                    this.Form.CloseDrawer();
                    //frmAssets frm = new frmAssets();
                    //Form.Show(frm, (obj,args) => {
                    //    LeftMenu lf = (LeftMenu)frm.Drawer;
                    //    changePage(lf.pagename); });
                    break;

                case "SNJieyong":
                    frmBorrowOrder frm1 = new frmBorrowOrder();
                    Form.Show(frm1, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm1.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNGuiHuan":
                    frmReturnOrder frm2 = new frmReturnOrder();
                    Form.Show(frm2, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm2.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNLingYong":
                    frmCollarOrder frm3 = new frmCollarOrder();
                    Form.Show(frm3, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm3.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNTuiKu":
                    frmRestoreOrder frm4 = new frmRestoreOrder();
                    Form.Show(frm4, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm4.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNDiaoBo":
                    frmTransferRowsSN frm5 = new frmTransferRowsSN();
                    Form.Show(frm5, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm5.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNWeiXiu":
                    frmRepairRowsSN frm6 = new frmRepairRowsSN();
                    Form.Show(frm6, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm6.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNBaoFei":
                    frmScrapRowsSN frm7 = new frmScrapRowsSN();
                    Form.Show(frm7, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm7.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNPanDian":
                    frmAssInventory frm8 = new frmAssInventory();
                    Form.Show(frm8, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm8.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNZiChanFenLei":
                    frmAssetsTypeRows frm9 = new frmAssetsTypeRows();
                    Form.Show(frm9, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm9.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNQuYu":
                    frmLocationRows frm10 = new frmLocationRows();
                    Form.Show(frm10, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm10.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "SNBuMen":
                    frmDepartment frm11 = new frmDepartment();
                    Form.Show(frm11, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm11.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "HaoCai":
                    frmConsumables frm12 = new frmConsumables();
                    Form.Show(frm12, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm12.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "ruku":
                    frmWarehouseReceipt frm13 = new frmWarehouseReceipt();
                    Form.Show(frm13, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm13.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "chuku":
                    frmOutboundOrder frm14 = new frmOutboundOrder();
                    Form.Show(frm14, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm14.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "DiaoBo":
                    frmTransferRows frm15 = new frmTransferRows();
                    Form.Show(frm15, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm15.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "pandian":
                    frmConInventory frm16 = new frmConInventory();
                    Form.Show(frm16, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm16.Drawer;
                        changePage(lf.pagename);
                    });
                    break;

                case "plPerson":
                    frmMessage frm17 = new frmMessage();
                    Form.Show(frm17, (obj, args) => {
                        LeftMenu lf = (LeftMenu)frm17.Drawer;
                        if (lf != null)
                        {
                            changePage(lf.pagename);
                        }
                        this.Form.CloseDrawer();
                    });
                    break;
                }
            }
            else
            {
                this.Form.Close();
            }
        }
Exemplo n.º 4
0
        private void iconMenu_ItemPress(object sender, IconMenuViewItemPressEventArgs e)
        {
            switch (e.Item.Value)
            {
            //资产
            case "Assets":
                frmAssets frmAssets = new frmAssets();
                if (btnWareHouse.Tag != null)
                {
                    frmAssets.wareId = btnWareHouse.Tag.ToString();
                }
                this.Form.Show(frmAssets);
                break;

            case "AssTemplate":
                frmAssTemplate frmAssTemplate = new frmAssTemplate();
                this.Form.Show(frmAssTemplate);
                break;

            case "AssIn":
                frmAssIn frmAssIn = new frmAssIn();
                this.Form.Show(frmAssIn);
                break;

            case "AssOut":
                frmAssOut frmAssOut = new frmAssOut();
                this.Form.Show(frmAssOut);
                break;

            case "AssTransfer":
                frmAssTransferRows frmAssTransferRows = new frmAssTransferRows();
                this.Form.Show(frmAssTransferRows);
                break;

            case "AssInventory":
                frmAssInventory frmAssInventory = new frmAssInventory();
                this.Form.Show(frmAssInventory);
                break;

            //耗材
            case "ConManage":
                frmConsumables frmConsumables = new frmConsumables();
                this.Form.Show(frmConsumables);
                break;

            case "ConIn":
                frmConPORInSto frmConPORInSto = new frmConPORInSto();
                this.Form.Show(frmConPORInSto);
                break;

            case "ConOut":
                frmConSOROutbound frmConSOROutbound = new frmConSOROutbound();
                this.Form.Show(frmConSOROutbound);
                break;

            case "ConTransfer":
                frmTransferRows frmTransferRows = new frmTransferRows();
                this.Form.Show(frmTransferRows);
                break;

            case "ConInventory":
                frmConInventory frmConInventory = new frmConInventory();
                this.Form.Show(frmConInventory);
                break;
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 跳转到资产盘点界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SNInventory_Press(object sender, EventArgs e)
        {
            frmAssInventory frm = new frmAssInventory();

            this.Form.Show(frm);
        }