void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.thisForm = ((SKPI_Cantier_Extracted_Data.LotCardLabel_TRC_Sample)(target)); #line 8 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.thisForm.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.imageViewwer = ((System.Windows.Controls.Image)(target)); return; case 3: this.btnAddNewRecord = ((System.Windows.Controls.Button)(target)); #line 64 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnAddNewRecord.Click += new System.Windows.RoutedEventHandler(this.BtnAddNewRecord_Click); #line default #line hidden return; case 4: this.btnEdit = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.BtnEdit_Click); #line default #line hidden return; case 5: this.btnDelete = ((System.Windows.Controls.Button)(target)); #line 80 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.BtnDelete_Click); #line default #line hidden return; case 6: this.btnCancelLotCard = ((System.Windows.Controls.Button)(target)); #line 88 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnCancelLotCard.Click += new System.Windows.RoutedEventHandler(this.BtnCancelLotCard_Click); #line default #line hidden return; case 7: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 97 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.BtnSave_Click); #line default #line hidden return; case 8: this.btnCancelChanges = ((System.Windows.Controls.Button)(target)); #line 106 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnCancelChanges.Click += new System.Windows.RoutedEventHandler(this.BtnCancelChanges_Click); #line default #line hidden return; case 9: this.btnPreview = ((System.Windows.Controls.Button)(target)); #line 115 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnPreview.Click += new System.Windows.RoutedEventHandler(this.BtnPreview_Click); #line default #line hidden return; case 10: this.glbl2 = ((System.Windows.Controls.Label)(target)); return; case 11: this.glbl3 = ((System.Windows.Controls.Label)(target)); return; case 12: this.cboFilterMonth = ((Telerik.Windows.Controls.RadComboBox)(target)); #line 187 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.cboFilterMonth.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboFilterMonth_SelectionChanged); #line default #line hidden return; case 13: this.cboFilterYear = ((Telerik.Windows.Controls.RadComboBox)(target)); #line 190 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.cboFilterYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboFilterYear_SelectionChanged); #line default #line hidden return; case 14: this.gridLotCardGroup = ((Telerik.Windows.Controls.RadGridView)(target)); #line 203 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.gridLotCardGroup.RowActivated += new System.EventHandler <Telerik.Windows.Controls.GridView.RowEventArgs>(this.GridLotCardGroup_RowActivated); #line default #line hidden #line 204 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.gridLotCardGroup.SelectionChanged += new System.EventHandler <Telerik.Windows.Controls.SelectionChangeEventArgs>(this.GridLotCardGroup_SelectionChanged); #line default #line hidden return; case 15: this.GridFields = ((System.Windows.Controls.Grid)(target)); return; case 16: this.glbl1 = ((System.Windows.Controls.Label)(target)); return; case 17: this.tbLotCardNo = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 18: this.grp3 = ((System.Windows.Controls.GroupBox)(target)); return; case 19: this.glbl4 = ((System.Windows.Controls.Label)(target)); return; case 20: this.lblStatus = ((System.Windows.Controls.TextBlock)(target)); return; case 21: this.grp2 = ((System.Windows.Controls.GroupBox)(target)); return; case 22: this.glbl10 = ((System.Windows.Controls.Label)(target)); return; case 23: this.lblIsPrinted = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.glbl5 = ((System.Windows.Controls.Label)(target)); return; case 25: this.tbDate = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 26: this.tbTime = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 27: this.tbEncoder = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 28: this.grp4 = ((System.Windows.Controls.Grid)(target)); return; case 29: this.glbl9 = ((System.Windows.Controls.Label)(target)); return; case 30: this.tbCustomerCode = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 31: this.tbCustomerName = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 32: this.glbl7 = ((System.Windows.Controls.Label)(target)); return; case 33: this.tbReqRefNo = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 34: this.cboPart = ((Telerik.Windows.Controls.RadComboBox)(target)); #line 410 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.cboPart.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPart_SelectionChanged); #line default #line hidden return; case 35: this.tbPartName = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 36: this.tbRevNo = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 37: this.tbModel = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 38: this.tbWarehouseDestination = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 39: this.tbPONo = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 40: this.tbJONo = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 41: this.tbTotalQty = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 42: this.tbQtyPerBox = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 43: this.tbQtyPerPack = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 44: this.tbComputedNoOfBoxes = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 45: this.dateManaufactured = ((Telerik.Windows.Controls.RadDatePicker)(target)); #line 554 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.dateManaufactured.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DateManaufactured_SelectionChanged); #line default #line hidden return; case 46: this.cboWorkShift = ((Telerik.Windows.Controls.RadComboBox)(target)); #line 577 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.cboWorkShift.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboWorkShift_SelectionChanged); #line default #line hidden return; case 47: this.tbSohbiInternalLotNo = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 48: this.tbLN1 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 49: this.tbLN2 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 50: this.tbLN3 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 51: this.tbLN4 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 52: this.tbLN5 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 53: this.tbLN6 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 54: this.tbLN7 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 55: this.tbLN8 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 56: this.tbLN9 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 57: this.tbLN10 = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 58: this.tbROHSMark = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 59: this.tbAdditionalMark = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 60: this.tbRemarks = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target)); return; case 61: this.cboPackedBy = ((Telerik.Windows.Controls.RadComboBox)(target)); return; case 62: this.gridPaperColor = ((System.Windows.Controls.Grid)(target)); return; case 63: this.btnChangePaperColor = ((System.Windows.Controls.Button)(target)); #line 735 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnChangePaperColor.Click += new System.Windows.RoutedEventHandler(this.BtnChangePaperColor_Click); #line default #line hidden return; case 64: this.txtPaperColor = ((System.Windows.Controls.TextBlock)(target)); return; case 65: this.btnGenerateLotcardLabel = ((System.Windows.Controls.Button)(target)); #line 747 "..\..\..\..\LOTCARD_LABEL\Cantier\LotCardLabel_TRC_Sample.xaml" this.btnGenerateLotcardLabel.Click += new System.Windows.RoutedEventHandler(this.BtnGenerateLotcardLabel_Click); #line default #line hidden return; case 66: this.lblGenerateLotCard = ((System.Windows.Controls.TextBlock)(target)); return; case 67: this.gridOutsideLot = ((System.Windows.Controls.DataGrid)(target)); return; case 68: this.coutOutsideNo = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 69: this.coutQtyPerBox_Case = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 70: this.lblReceivedByPMCMark = ((System.Windows.Controls.TextBlock)(target)); return; case 71: this.gridInsideLot = ((System.Windows.Controls.DataGrid)(target)); return; case 72: this.cinOutsideNo = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 73: this.cinInsideNo = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 74: this.cinQtyPerBox_Case = ((System.Windows.Controls.DataGridTextColumn)(target)); return; } this._contentLoaded = true; }
private void RadMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) { int frmSize_Width = ClsConfig.Scr_Width, frmSize_Height = ClsConfig.Scr_Height; var currentItem = e.OriginalSource as RadMenuItem; switch (currentItem.Tag) { case "menuCantierPEZALOARequest": PEZA_LOA frmPEZA_LOA = new PEZA_LOA(); frmPEZA_LOA.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_LOA.Height = frmSize_Height; frmPEZA_LOA.Width = frmSize_Width; frmPEZA_LOA._userid = _userid; frmPEZA_LOA.WindowState = WindowState.Normal; frmPEZA_LOA.ResizeMode = ResizeMode.CanResize; frmPEZA_LOA.Show(); break; case "menuCantier8106ConstructiveExportation": PEZA_8106_CE frmPEZA_8106_CE = new PEZA_8106_CE(); frmPEZA_8106_CE.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_8106_CE.Height = frmSize_Height; frmPEZA_8106_CE.Width = frmSize_Width; frmPEZA_8106_CE._userid = _userid; frmPEZA_8106_CE.WindowState = WindowState.Normal; frmPEZA_8106_CE.ResizeMode = ResizeMode.CanResize; frmPEZA_8106_CE.Show(); break; case "menuCantier8106Subcon": PEZA_8106_SubCon frmPEZA_8106_SubCon = new PEZA_8106_SubCon(); frmPEZA_8106_SubCon.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_8106_SubCon.Height = frmSize_Height; frmPEZA_8106_SubCon.Width = frmSize_Width; frmPEZA_8106_SubCon._userid = _userid; frmPEZA_8106_SubCon.WindowState = WindowState.Normal; frmPEZA_8106_SubCon.ResizeMode = ResizeMode.CanResize; frmPEZA_8106_SubCon.Show(); break; case "menuCantierPEZA8105": PEZA_8105 frmPEZA_8105 = new PEZA_8105(); frmPEZA_8105.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_8105.Height = frmSize_Height; frmPEZA_8105.Width = frmSize_Width; frmPEZA_8105._userid = _userid; frmPEZA_8105.WindowState = WindowState.Normal; frmPEZA_8105.ResizeMode = ResizeMode.CanResize; frmPEZA_8105.Show(); break; case "menuCantierPEZA8112": PEZA_8112 frmPEZA_8112 = new PEZA_8112(); frmPEZA_8112.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_8112.Height = frmSize_Height; frmPEZA_8112.Width = frmSize_Width; frmPEZA_8112._userid = _userid; frmPEZA_8112.WindowState = WindowState.Normal; frmPEZA_8112.ResizeMode = ResizeMode.CanResize; frmPEZA_8112.Show(); break; case "menuCantierLotCard_Canon": LotCardLabel_Canon frmLotCardLabel_Canon = new LotCardLabel_Canon(); frmLotCardLabel_Canon._deptcode = _deptcode; frmLotCardLabel_Canon._sectcode = _sectcode; frmLotCardLabel_Canon._userid = _userid; frmLotCardLabel_Canon.Height = frmSize_Height; frmLotCardLabel_Canon.Width = frmSize_Width; frmLotCardLabel_Canon.WindowState = WindowState.Normal; frmLotCardLabel_Canon.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Canon.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Canon.Show(); break; case "menuCantierLotCardLabel_TRC": LotCardLabel_TRC frmLotCardLabel_TRC = new LotCardLabel_TRC(); frmLotCardLabel_TRC._deptcode = _deptcode; frmLotCardLabel_TRC._sectcode = _sectcode; frmLotCardLabel_TRC._userid = _userid; frmLotCardLabel_TRC.Height = frmSize_Height; frmLotCardLabel_TRC.Width = frmSize_Width; frmLotCardLabel_TRC.WindowState = WindowState.Normal; frmLotCardLabel_TRC.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_TRC.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_TRC.Show(); break; case "menuCantierLotCard_OtherCustomers": LotCardLabel_OtherCustomers frmLotCardLabel_OtherCustomers = new LotCardLabel_OtherCustomers(); frmLotCardLabel_OtherCustomers._deptcode = _deptcode; frmLotCardLabel_OtherCustomers._sectcode = _sectcode; frmLotCardLabel_OtherCustomers.Height = frmSize_Height; frmLotCardLabel_OtherCustomers.Width = frmSize_Width; frmLotCardLabel_OtherCustomers._userid = _userid; frmLotCardLabel_OtherCustomers.WindowState = WindowState.Normal; frmLotCardLabel_OtherCustomers.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_OtherCustomers.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_OtherCustomers.Show(); break; case "menuCantierLotCardLabel_SubCon": LotCardLabel_SubCon frmLotCardLabel_SubCon = new LotCardLabel_SubCon(); frmLotCardLabel_SubCon._deptcode = _deptcode; frmLotCardLabel_SubCon._sectcode = _sectcode; frmLotCardLabel_SubCon._userid = _userid; frmLotCardLabel_SubCon.Height = frmSize_Height; frmLotCardLabel_SubCon.Width = frmSize_Width; frmLotCardLabel_SubCon.WindowState = WindowState.Normal; frmLotCardLabel_SubCon.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_SubCon.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_SubCon.Show(); break; case "menuCantierLotCardLabel_TRC_Sample": LotCardLabel_TRC_Sample frmLotCardLabel_TRC_Sample = new LotCardLabel_TRC_Sample(); frmLotCardLabel_TRC_Sample._deptcode = _deptcode; frmLotCardLabel_TRC_Sample._sectcode = _sectcode; frmLotCardLabel_TRC_Sample._userid = _userid; frmLotCardLabel_TRC_Sample.Height = frmSize_Height; frmLotCardLabel_TRC_Sample.Width = frmSize_Width; frmLotCardLabel_TRC_Sample.WindowState = WindowState.Normal; frmLotCardLabel_TRC_Sample.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_TRC_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_TRC_Sample.Show(); break; case "menuCantierLotCard_Fujitsu_Sample": LotCardLabel_Fujitsu_Sample frmLotCardLabel_Fujitsu_Sample = new LotCardLabel_Fujitsu_Sample(); frmLotCardLabel_Fujitsu_Sample._deptcode = _deptcode; frmLotCardLabel_Fujitsu_Sample._sectcode = _sectcode; frmLotCardLabel_Fujitsu_Sample.Height = frmSize_Height; frmLotCardLabel_Fujitsu_Sample.Width = frmSize_Width; frmLotCardLabel_Fujitsu_Sample._userid = _userid; frmLotCardLabel_Fujitsu_Sample.WindowState = WindowState.Normal; frmLotCardLabel_Fujitsu_Sample.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Fujitsu_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Fujitsu_Sample.Show(); break; case "menuCantierLotCard_Canon_Sample": LotCardLabel_Canon_Sample frmLotCardLabel_Canon_Sample = new LotCardLabel_Canon_Sample(); frmLotCardLabel_Canon_Sample._deptcode = _deptcode; frmLotCardLabel_Canon_Sample._sectcode = _sectcode; frmLotCardLabel_Canon_Sample.Height = frmSize_Height; frmLotCardLabel_Canon_Sample.Width = frmSize_Width; frmLotCardLabel_Canon_Sample._userid = _userid; frmLotCardLabel_Canon_Sample.WindowState = WindowState.Normal; frmLotCardLabel_Canon_Sample.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Canon_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Canon_Sample.Show(); break; case "menuCantierLotCard_EPSON_Sample": LotCardLabel_EPPI_Sample frmLotCardLabel_EPPI_Sample = new LotCardLabel_EPPI_Sample(); frmLotCardLabel_EPPI_Sample._deptcode = _deptcode; frmLotCardLabel_EPPI_Sample._sectcode = _sectcode; frmLotCardLabel_EPPI_Sample.Height = frmSize_Height; frmLotCardLabel_EPPI_Sample.Width = frmSize_Width; frmLotCardLabel_EPPI_Sample._userid = _userid; frmLotCardLabel_EPPI_Sample.WindowState = WindowState.Normal; frmLotCardLabel_EPPI_Sample.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_EPPI_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_EPPI_Sample.Show(); break; case "menuCantierLotCard_OtherCustomers_Sample": LotCardLabel_OtherCustomers_Sample frmLotCardLabel_OtherCustomers_Sample = new LotCardLabel_OtherCustomers_Sample(); frmLotCardLabel_OtherCustomers_Sample._deptcode = _deptcode; frmLotCardLabel_OtherCustomers_Sample._sectcode = _sectcode; frmLotCardLabel_OtherCustomers_Sample.Height = frmSize_Height; frmLotCardLabel_OtherCustomers_Sample.Width = frmSize_Width; frmLotCardLabel_OtherCustomers_Sample._userid = _userid; frmLotCardLabel_OtherCustomers_Sample.WindowState = WindowState.Normal; frmLotCardLabel_OtherCustomers_Sample.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_OtherCustomers_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_OtherCustomers_Sample.Show(); break; case "menuCantierOQCNormalInspection": OQC_Inspection_Normal frmOQC_Inspection_Normal = new OQC_Inspection_Normal(); //frmOQC_Inspection_Normal._deptcode = _deptcode; //frmOQC_Inspection_Normal._sectcode = _sectcode; frmOQC_Inspection_Normal._userid = _userid; frmOQC_Inspection_Normal.Height = frmSize_Height; frmOQC_Inspection_Normal.Width = frmSize_Width; frmOQC_Inspection_Normal.WindowState = WindowState.Normal; frmOQC_Inspection_Normal.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_Normal.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_Normal.Show(); break; case "menuCantierOQCReInspection": OQC_Inspection_ReInspection frmOQC_Inspection_ReInspection = new OQC_Inspection_ReInspection(); frmOQC_Inspection_ReInspection._deptcode = _deptcode; frmOQC_Inspection_ReInspection._sectcode = _sectcode; frmOQC_Inspection_ReInspection._userid = _userid; frmOQC_Inspection_ReInspection.Height = frmSize_Height; frmOQC_Inspection_ReInspection.Width = frmSize_Width; frmOQC_Inspection_ReInspection.WindowState = WindowState.Normal; frmOQC_Inspection_ReInspection.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_ReInspection.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_ReInspection.Show(); break; case "menuCantierOQCRepacked": OQC_Inspection_Repack frmOQC_Inspection_Repack = new OQC_Inspection_Repack(); frmOQC_Inspection_Repack._deptcode = _deptcode; frmOQC_Inspection_Repack._sectcode = _sectcode; frmOQC_Inspection_Repack._userid = _userid; frmOQC_Inspection_Repack.Height = frmSize_Height; frmOQC_Inspection_Repack.Width = frmSize_Width; frmOQC_Inspection_Repack.WindowState = WindowState.Normal; frmOQC_Inspection_Repack.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_Repack.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_Repack.Show(); break; case "menuCantierOQCReplacement": OQC_Inspection_Replacement frmOQC_Inspection_Replacement = new OQC_Inspection_Replacement(); frmOQC_Inspection_Replacement._deptcode = _deptcode; frmOQC_Inspection_Replacement._sectcode = _sectcode; frmOQC_Inspection_Replacement._userid = _userid; frmOQC_Inspection_Replacement.Height = frmSize_Height; frmOQC_Inspection_Replacement.Width = frmSize_Width; frmOQC_Inspection_Replacement.WindowState = WindowState.Normal; frmOQC_Inspection_Replacement.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_Replacement.Show(); break; case "menuCantierOQCSample": OQC_Inspection_Sample frmOQC_Inspection_Sample = new OQC_Inspection_Sample(); frmOQC_Inspection_Sample._deptcode = _deptcode; frmOQC_Inspection_Sample._sectcode = _sectcode; frmOQC_Inspection_Sample._userid = _userid; frmOQC_Inspection_Sample.Height = frmSize_Height; frmOQC_Inspection_Sample.Width = frmSize_Width; frmOQC_Inspection_Sample.WindowState = WindowState.Normal; frmOQC_Inspection_Sample.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_Sample.Show(); break; case "menuCantierOQCDWRDetailed": OQC_Inspection_DailyWorkReport frmOQC_Inspection_DailyWorkReport = new OQC_Inspection_DailyWorkReport(); frmOQC_Inspection_DailyWorkReport._deptcode = _deptcode; frmOQC_Inspection_DailyWorkReport._sectcode = _sectcode; frmOQC_Inspection_DailyWorkReport._userid = _userid; frmOQC_Inspection_DailyWorkReport.Height = frmSize_Height; frmOQC_Inspection_DailyWorkReport.Width = frmSize_Width; frmOQC_Inspection_DailyWorkReport.WindowState = WindowState.Normal; frmOQC_Inspection_DailyWorkReport.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_DailyWorkReport.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_DailyWorkReport.Show(); break; case "menuCantierOQCDWRSummary": OQC_Inspection_DailyWorkReport_Summary frmOQC_Inspection_DailyWorkReport_Summary = new OQC_Inspection_DailyWorkReport_Summary(); frmOQC_Inspection_DailyWorkReport_Summary._deptcode = _deptcode; frmOQC_Inspection_DailyWorkReport_Summary._sectcode = _sectcode; frmOQC_Inspection_DailyWorkReport_Summary._userid = _userid; frmOQC_Inspection_DailyWorkReport_Summary.Height = frmSize_Height; frmOQC_Inspection_DailyWorkReport_Summary.Width = frmSize_Width; frmOQC_Inspection_DailyWorkReport_Summary.WindowState = WindowState.Normal; frmOQC_Inspection_DailyWorkReport_Summary.ResizeMode = ResizeMode.CanResize; frmOQC_Inspection_DailyWorkReport_Summary.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmOQC_Inspection_DailyWorkReport_Summary.Show(); break; case "menuCantierFGOutForDelivery": FG_OutForDelivery frmFG_OutForDelivery = new FG_OutForDelivery(); frmFG_OutForDelivery._deptcode = _deptcode; frmFG_OutForDelivery._sectcode = _sectcode; frmFG_OutForDelivery._userid = _userid; frmFG_OutForDelivery.Height = frmSize_Height; frmFG_OutForDelivery.Width = frmSize_Width; frmFG_OutForDelivery.WindowState = WindowState.Normal; frmFG_OutForDelivery.ResizeMode = ResizeMode.CanResize; frmFG_OutForDelivery.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmFG_OutForDelivery.Show(); break; case "menuCantierFGReceiveFromProductionForStorage": FG_ReceiveFromProductionForStorage frmFG_ReceiveFromProductionForStorage = new FG_ReceiveFromProductionForStorage(); frmFG_ReceiveFromProductionForStorage._deptcode = _deptcode; frmFG_ReceiveFromProductionForStorage._sectcode = _sectcode; frmFG_ReceiveFromProductionForStorage._userid = _userid; frmFG_ReceiveFromProductionForStorage.Height = frmSize_Height; frmFG_ReceiveFromProductionForStorage.Width = frmSize_Width; frmFG_ReceiveFromProductionForStorage.WindowState = WindowState.Normal; frmFG_ReceiveFromProductionForStorage.ResizeMode = ResizeMode.CanResize; frmFG_ReceiveFromProductionForStorage.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmFG_ReceiveFromProductionForStorage.Show(); break; case "menuCantier8106ActualTripControlNormal": PEZA_8106_TripControl frmPEZA_8106_TripControl = new PEZA_8106_TripControl(); frmPEZA_8106_TripControl._deptcode = _deptcode; frmPEZA_8106_TripControl._sectcode = _sectcode; frmPEZA_8106_TripControl.Height = frmSize_Height; frmPEZA_8106_TripControl.Width = frmSize_Width; frmPEZA_8106_TripControl.WindowState = WindowState.Normal; frmPEZA_8106_TripControl.ResizeMode = ResizeMode.CanResize; frmPEZA_8106_TripControl.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_8106_TripControl.Show(); break; case "menuCantier8106ActualTripControlSubcon": PEZA_8106_TripControl_SubCon frmPEZA_8106_TripControl_SubCon = new PEZA_8106_TripControl_SubCon(); frmPEZA_8106_TripControl_SubCon._deptcode = _deptcode; frmPEZA_8106_TripControl_SubCon._sectcode = _sectcode; frmPEZA_8106_TripControl_SubCon.Height = frmSize_Height; frmPEZA_8106_TripControl_SubCon.Width = frmSize_Width; frmPEZA_8106_TripControl_SubCon.WindowState = WindowState.Normal; frmPEZA_8106_TripControl_SubCon.ResizeMode = ResizeMode.CanResize; frmPEZA_8106_TripControl_SubCon.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmPEZA_8106_TripControl_SubCon.Show(); break; case "menuCantierDISNormal": FG_DeliveryInformationSheet frmFG_DeliveryInformationSheet = new FG_DeliveryInformationSheet(); frmFG_DeliveryInformationSheet._deptcode = _deptcode; frmFG_DeliveryInformationSheet._sectcode = _sectcode; frmFG_DeliveryInformationSheet.Height = frmSize_Height; frmFG_DeliveryInformationSheet.Width = frmSize_Width; frmFG_DeliveryInformationSheet.WindowState = WindowState.Normal; frmFG_DeliveryInformationSheet.ResizeMode = ResizeMode.CanResize; frmFG_DeliveryInformationSheet.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmFG_DeliveryInformationSheet.Show(); break; case "menuCantierDISSubCon": FG_DeliveryInformationSheet_SubCon frmFG_DeliveryInformationSheet_SubCon = new FG_DeliveryInformationSheet_SubCon(); frmFG_DeliveryInformationSheet_SubCon._deptcode = _deptcode; frmFG_DeliveryInformationSheet_SubCon._sectcode = _sectcode; frmFG_DeliveryInformationSheet_SubCon._userid = _userid; frmFG_DeliveryInformationSheet_SubCon.Height = frmSize_Height; frmFG_DeliveryInformationSheet_SubCon.Width = frmSize_Width; frmFG_DeliveryInformationSheet_SubCon.WindowState = WindowState.Normal; frmFG_DeliveryInformationSheet_SubCon.ResizeMode = ResizeMode.CanResize; frmFG_DeliveryInformationSheet_SubCon.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmFG_DeliveryInformationSheet_SubCon.Show(); break; case "menuCantierDISSample": FG_DeliveryInformationSheet_SampleParts frmFG_DeliveryInformationSheet_SampleParts = new FG_DeliveryInformationSheet_SampleParts(); frmFG_DeliveryInformationSheet_SampleParts._deptcode = _deptcode; frmFG_DeliveryInformationSheet_SampleParts._sectcode = _sectcode; frmFG_DeliveryInformationSheet_SampleParts._userid = _userid; frmFG_DeliveryInformationSheet_SampleParts.Height = frmSize_Height; frmFG_DeliveryInformationSheet_SampleParts.Width = frmSize_Width; frmFG_DeliveryInformationSheet_SampleParts.WindowState = WindowState.Normal; frmFG_DeliveryInformationSheet_SampleParts.ResizeMode = ResizeMode.CanResize; frmFG_DeliveryInformationSheet_SampleParts.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmFG_DeliveryInformationSheet_SampleParts.Show(); break; case "menuAbout": About frmAbout = new About(); frmAbout.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmAbout.Show(); break; case "menuCantierLotCard_EPSON": LotCardLabel_EPPI frmLotCardLabel_EPPI = new LotCardLabel_EPPI(); frmLotCardLabel_EPPI._deptcode = _deptcode; frmLotCardLabel_EPPI._sectcode = _sectcode; frmLotCardLabel_EPPI._userid = _userid; frmLotCardLabel_EPPI.Height = frmSize_Height; frmLotCardLabel_EPPI.Width = frmSize_Width; frmLotCardLabel_EPPI.WindowState = WindowState.Normal; frmLotCardLabel_EPPI.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_EPPI.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_EPPI.Show(); break; case "menuCantierLotCard_Fujitsu": LotCardLabel_Fujitsu frmLotCardLabel_Fujitsu = new LotCardLabel_Fujitsu(); frmLotCardLabel_Fujitsu._deptcode = _deptcode; frmLotCardLabel_Fujitsu._sectcode = _sectcode; frmLotCardLabel_Fujitsu._userid = _userid; frmLotCardLabel_Fujitsu.Height = frmSize_Height; frmLotCardLabel_Fujitsu.Width = frmSize_Width; frmLotCardLabel_Fujitsu.WindowState = WindowState.Normal; frmLotCardLabel_Fujitsu.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Fujitsu.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Fujitsu.Show(); break; case "menuPCSLotCardLabel_TRC": LotCardLabel_TRC_PCS frmLotCardLabel_TRC_PCS = new LotCardLabel_TRC_PCS(); frmLotCardLabel_TRC_PCS._deptcode = _deptcode; frmLotCardLabel_TRC_PCS._sectcode = _sectcode; frmLotCardLabel_TRC_PCS._userid = _userid; frmLotCardLabel_TRC_PCS.Height = frmSize_Height; frmLotCardLabel_TRC_PCS.Width = frmSize_Width; frmLotCardLabel_TRC_PCS.WindowState = WindowState.Normal; frmLotCardLabel_TRC_PCS.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_TRC_PCS.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_TRC_PCS.Show(); break; case "menuPCSLotCardLabel_TRC_Replacement": LotCardLabel_TRC_PCS_Replacement frmLotCardLabel_TRC_PCS_Replacement = new LotCardLabel_TRC_PCS_Replacement(); frmLotCardLabel_TRC_PCS_Replacement._deptcode = _deptcode; frmLotCardLabel_TRC_PCS_Replacement._sectcode = _sectcode; frmLotCardLabel_TRC_PCS_Replacement._userid = _userid; frmLotCardLabel_TRC_PCS_Replacement.Height = frmSize_Height; frmLotCardLabel_TRC_PCS_Replacement.Width = frmSize_Width; frmLotCardLabel_TRC_PCS_Replacement.WindowState = WindowState.Normal; frmLotCardLabel_TRC_PCS_Replacement.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_TRC_PCS_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_TRC_PCS_Replacement.Show(); break; case "menuPCSLotCardLabel_TRC_Sample": LotCardLabel_TRC_PCS_Sample frmLotCardLabel_TRC_PCS_Sample = new LotCardLabel_TRC_PCS_Sample(); frmLotCardLabel_TRC_PCS_Sample._deptcode = _deptcode; frmLotCardLabel_TRC_PCS_Sample._sectcode = _sectcode; frmLotCardLabel_TRC_PCS_Sample._userid = _userid; frmLotCardLabel_TRC_PCS_Sample.Height = frmSize_Height; frmLotCardLabel_TRC_PCS_Sample.Width = frmSize_Width; frmLotCardLabel_TRC_PCS_Sample.WindowState = WindowState.Normal; frmLotCardLabel_TRC_PCS_Sample.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_TRC_PCS_Sample.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_TRC_PCS_Sample.Show(); break; case "menuPCSCanon": LotCardLabel_Canon_PCS frmLotCardLabel_Canon_PCS = new LotCardLabel_Canon_PCS(); frmLotCardLabel_Canon_PCS._deptcode = _deptcode; frmLotCardLabel_Canon_PCS._sectcode = _sectcode; frmLotCardLabel_Canon_PCS._userid = _userid; frmLotCardLabel_Canon_PCS.Height = frmSize_Height; frmLotCardLabel_Canon_PCS.Width = frmSize_Width; frmLotCardLabel_Canon_PCS.WindowState = WindowState.Normal; frmLotCardLabel_Canon_PCS.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Canon_PCS.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Canon_PCS.Show(); break; case "menuPCSLotCardLabel_EPPI_Metal": LotCardLabel_EPPI_Metal_PCS frmLotCardLabel_EPPI_Metal_PCS = new LotCardLabel_EPPI_Metal_PCS(); frmLotCardLabel_EPPI_Metal_PCS._deptcode = _deptcode; frmLotCardLabel_EPPI_Metal_PCS._sectcode = _sectcode; frmLotCardLabel_EPPI_Metal_PCS._userid = _userid; frmLotCardLabel_EPPI_Metal_PCS.Height = frmSize_Height; frmLotCardLabel_EPPI_Metal_PCS.Width = frmSize_Width; frmLotCardLabel_EPPI_Metal_PCS.WindowState = WindowState.Normal; frmLotCardLabel_EPPI_Metal_PCS.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_EPPI_Metal_PCS.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_EPPI_Metal_PCS.Show(); break; case "menuLotCardLabel_TRC_Replacement": LotCardLabel_TRC_Replacement frmLotCardLabel_TRC_Replacement = new LotCardLabel_TRC_Replacement(); frmLotCardLabel_TRC_Replacement._deptcode = _deptcode; frmLotCardLabel_TRC_Replacement._sectcode = _sectcode; frmLotCardLabel_TRC_Replacement._userid = _userid; frmLotCardLabel_TRC_Replacement.Height = frmSize_Height; frmLotCardLabel_TRC_Replacement.Width = frmSize_Width; frmLotCardLabel_TRC_Replacement.WindowState = WindowState.Normal; frmLotCardLabel_TRC_Replacement.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_TRC_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_TRC_Replacement.Show(); break; case "menuLotCardLabel_Canon_Replacement": LotCardLabel_Canon_Replacement frmLotCardLabel_Canon_Replacement = new LotCardLabel_Canon_Replacement(); frmLotCardLabel_Canon_Replacement._deptcode = _deptcode; frmLotCardLabel_Canon_Replacement._sectcode = _sectcode; frmLotCardLabel_Canon_Replacement._userid = _userid; frmLotCardLabel_Canon_Replacement.Height = frmSize_Height; frmLotCardLabel_Canon_Replacement.Width = frmSize_Width; frmLotCardLabel_Canon_Replacement.WindowState = WindowState.Normal; frmLotCardLabel_Canon_Replacement.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Canon_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Canon_Replacement.Show(); break; case "menuLotCardLabel_Fujitsu_Replacement": LotCardLabel_Fujitsu_Replacement frmLotCardLabel_Fujitsu_Replacement = new LotCardLabel_Fujitsu_Replacement(); frmLotCardLabel_Fujitsu_Replacement._deptcode = _deptcode; frmLotCardLabel_Fujitsu_Replacement._sectcode = _sectcode; frmLotCardLabel_Fujitsu_Replacement._userid = _userid; frmLotCardLabel_Fujitsu_Replacement.Height = frmSize_Height; frmLotCardLabel_Fujitsu_Replacement.Width = frmSize_Width; frmLotCardLabel_Fujitsu_Replacement.WindowState = WindowState.Normal; frmLotCardLabel_Fujitsu_Replacement.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_Fujitsu_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_Fujitsu_Replacement.Show(); break; case "menuLotCardLabel_Epson_Replacement": LotCardLabel_EPPI_Replacement frmLotCardLabel_EPPI_Replacement = new LotCardLabel_EPPI_Replacement(); frmLotCardLabel_EPPI_Replacement._deptcode = _deptcode; frmLotCardLabel_EPPI_Replacement._sectcode = _sectcode; frmLotCardLabel_EPPI_Replacement._userid = _userid; frmLotCardLabel_EPPI_Replacement.Height = frmSize_Height; frmLotCardLabel_EPPI_Replacement.Width = frmSize_Width; frmLotCardLabel_EPPI_Replacement.WindowState = WindowState.Normal; frmLotCardLabel_EPPI_Replacement.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_EPPI_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_EPPI_Replacement.Show(); break; case "menuLotCardLabel_OtherCustomers_Replacement": LotCardLabel_OtherCustomers_Replacement frmLotCardLabel_OtherCustomers_Replacement = new LotCardLabel_OtherCustomers_Replacement(); frmLotCardLabel_OtherCustomers_Replacement._deptcode = _deptcode; frmLotCardLabel_OtherCustomers_Replacement._sectcode = _sectcode; frmLotCardLabel_OtherCustomers_Replacement._userid = _userid; frmLotCardLabel_OtherCustomers_Replacement.Height = frmSize_Height; frmLotCardLabel_OtherCustomers_Replacement.Width = frmSize_Width; frmLotCardLabel_OtherCustomers_Replacement.WindowState = WindowState.Normal; frmLotCardLabel_OtherCustomers_Replacement.ResizeMode = ResizeMode.CanResize; frmLotCardLabel_OtherCustomers_Replacement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLotCardLabel_OtherCustomers_Replacement.Show(); break; case "menuPCSNGDailyOutput": NGDailyOutput_PCS frmNGDailyOutput_PCS = new NGDailyOutput_PCS(); frmNGDailyOutput_PCS.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmNGDailyOutput_PCS.Height = frmSize_Height; frmNGDailyOutput_PCS.Width = frmSize_Width; frmNGDailyOutput_PCS.WindowState = WindowState.Normal; frmNGDailyOutput_PCS.ResizeMode = ResizeMode.CanResize; frmNGDailyOutput_PCS.Show(); break; case "menuPCSNGMonthlyOutput": NGMonthlyOutput_PCS frmNGMonthlyOutput_PCS = new NGMonthlyOutput_PCS(); frmNGMonthlyOutput_PCS.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmNGMonthlyOutput_PCS.Height = frmSize_Height; frmNGMonthlyOutput_PCS.Width = frmSize_Width; frmNGMonthlyOutput_PCS.WindowState = WindowState.Normal; frmNGMonthlyOutput_PCS.ResizeMode = ResizeMode.CanResize; frmNGMonthlyOutput_PCS.Show(); break; case "menuFG_InventoryLists": FG_InventoryLists frmFG_InventoryLists = new FG_InventoryLists(); frmFG_InventoryLists.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmFG_InventoryLists.Height = frmSize_Height; frmFG_InventoryLists.Width = frmSize_Width; frmFG_InventoryLists._userid = _userid; frmFG_InventoryLists.WindowState = WindowState.Normal; frmFG_InventoryLists.ResizeMode = ResizeMode.CanResize; frmFG_InventoryLists.Show(); break; case "menuAccountUsers": UserManagement frmUserManagement = new UserManagement(); frmUserManagement.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmUserManagement.Height = frmSize_Height; frmUserManagement.Width = frmSize_Width; //frmUserManagement._userid = _userid; frmUserManagement.WindowState = WindowState.Normal; frmUserManagement.ResizeMode = ResizeMode.CanResize; frmUserManagement.Show(); break; case "menuChangeMyPasword": ResetPassword frmResetPassword = new ResetPassword(); frmResetPassword.userid = _userid; frmResetPassword.ShowDialog(); break; case "menuSignout": var response = MessageBox.Show("Do you really want to exit?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Exclamation); if (response == MessageBoxResult.Yes) { LoginForm frmLoginForm = new LoginForm(); frmLoginForm.WindowStartupLocation = WindowStartupLocation.CenterScreen; frmLoginForm.Show(); this.Hide(); } break; } }