コード例 #1
0
 private void ShowItem()
 {
     if (lvList.SelectedItem != null)
     {
         Guid id = Guid.Empty;
         if (Guid.TryParse(lvList.SelectedItem.SubItems[2].Text, out id))
         {
             RT2020.Purchasing.Wizard.PurchaseOrder phoList = new RT2020.Purchasing.Wizard.PurchaseOrder(id);
             phoList.Closed += new EventHandler(wizSupplier_Closed);
             phoList.ShowDialog();
         }
     }
 }
コード例 #2
0
ファイル: PurchasingAts.cs プロジェクト: paulusyeung/RT2020
        private void AtsMenuClick(object sender, MenuItemEventArgs e)
        {
            //Control[] controls = this.Form.Controls.Find("wspPane", true);
            //if (controls.Length > 0)
            //{
            //    Panel wspPane = (Panel)controls[0];
            //    wspPane.Text = (string)e.MenuItem.Text;
            //}

            if (!(e.MenuItem.Tag == null))
            {
                switch (e.MenuItem.Tag.ToString().ToLower())
                {
                case "purpurchaseorders_multipleloc":
                    RT2020.Purchasing.Wizard.ByMultipleLocation wizMultipleLoc = new RT2020.Purchasing.Wizard.ByMultipleLocation();
                    wizMultipleLoc.ShowDialog();
                    break;

                case "purpurchaseorders":
                    RT2020.Purchasing.Wizard.PurchaseOrder wizPO = new RT2020.Purchasing.Wizard.PurchaseOrder();
                    wizPO.ShowDialog();
                    break;

                case "purpurchaseorders_auth":
                    RT2020.Purchasing.Wizard.AuthPurchaseOrder wizAuthPO = new RT2020.Purchasing.Wizard.AuthPurchaseOrder();
                    wizAuthPO.ShowDialog();
                    break;

                case "purgoodsreceive":
                    RT2020.Purchasing.Wizard.ReceivingFind wizReceivingFind = new RT2020.Purchasing.Wizard.ReceivingFind();
                    wizReceivingFind.ShowDialog();
                    break;

                case "purgoodsreceive_auth":
                    RT2020.Purchasing.Wizard.AuthPOReceiving wizAuthReceiving = new RT2020.Purchasing.Wizard.AuthPOReceiving();
                    wizAuthReceiving.ShowDialog();
                    break;

                case "purreceivingppc":
                    RT2020.Purchasing.Import.FromPPC wizFromPPC = new RT2020.Purchasing.Import.FromPPC();
                    wizFromPPC.ShowDialog();
                    break;

                case "purworksheet":
                    RT2020.Purchasing.Reports.PurchaseOrder.Worksheet wizWorksheet = new RT2020.Purchasing.Reports.PurchaseOrder.Worksheet();
                    wizWorksheet.ShowDialog();
                    break;

                case "purhistory":
                    RT2020.Purchasing.Reports.PurchaseOrder.History wizHistory = new RT2020.Purchasing.Reports.PurchaseOrder.History();
                    wizHistory.ShowDialog();
                    break;

                case "purvoidedworksheet":
                    RT2020.Purchasing.Reports.PurchaseOrder.VoidedWorksheet wizVoidedWorksheet = new RT2020.Purchasing.Reports.PurchaseOrder.VoidedWorksheet();
                    wizVoidedWorksheet.ShowDialog();
                    break;

                case "purorderstatus":
                    RT2020.Purchasing.Reports.PurchaseOrder.OrderStatus wizOrderStatus = new RT2020.Purchasing.Reports.PurchaseOrder.OrderStatus();
                    wizOrderStatus.ShowDialog();
                    break;

                case "purrecvworksheet":
                    RT2020.Purchasing.Reports.Receiving.Worksheet wizRecvWorksheet = new RT2020.Purchasing.Reports.Receiving.Worksheet();
                    wizRecvWorksheet.ShowDialog();
                    break;

                case "purrecvhistory":
                    RT2020.Purchasing.Reports.Receiving.History wizRecvHistory = new RT2020.Purchasing.Reports.Receiving.History();
                    wizRecvHistory.ShowDialog();
                    break;

                case "purrecvdiscrepency":
                    RT2020.Purchasing.Reports.Receiving.Discrepancy wizRecvDiscrepancy = new RT2020.Purchasing.Reports.Receiving.Discrepancy();
                    wizRecvDiscrepancy.ShowDialog();
                    break;

                case "purexpectedrecvsummay_weekly":
                    RT2020.Purchasing.Reports.Receiving.WeeklyExpectedSummary wizRecvSummary = new RT2020.Purchasing.Reports.Receiving.WeeklyExpectedSummary();
                    wizRecvSummary.ShowDialog();
                    break;
                }
            }
        }