private void ShowReconciliation(long ReconciliationID)
        {
            int TypeID = (int)this.cmbPayableType.SelectedValue;

            if (TypeID == iOutSrc)
            {
                if (frmOutSrcReconciliation == null)
                {
                    frmOutSrcReconciliation = new JERPApp.Finance.Report.Bill.Manufacture.FrmOutSrcReconciliation();
                    new FrmStyle(frmOutSrcReconciliation).SetPopFrmStyle(this);
                }
                frmOutSrcReconciliation.DetailNote(ReconciliationID);
                frmOutSrcReconciliation.ShowDialog();
            }
            if (TypeID == iMtr)
            {
                if (frmMtrReconciliation == null)
                {
                    frmMtrReconciliation = new JERPApp.Finance.Report.Bill.Material.FrmBuyReconciliation();
                    new FrmStyle(frmMtrReconciliation).SetPopFrmStyle(this);
                }
                frmMtrReconciliation.DetailNote(ReconciliationID);
                frmMtrReconciliation.ShowDialog();
            }
            if (TypeID == iOtherRes)
            {
                if (frmOtherResReconciliation == null)
                {
                    frmOtherResReconciliation = new JERPApp.Finance.Report.Bill.OtherRes.FrmBuyReconciliation();
                    new FrmStyle(frmOtherResReconciliation).SetPopFrmStyle(this);
                }
                frmOtherResReconciliation.DetailNote(ReconciliationID);
                frmOtherResReconciliation.ShowDialog();
            }

            if (TypeID == iPrd)
            {
                if (frmPrdReconciliation == null)
                {
                    frmPrdReconciliation = new JERPApp.Finance.Report.Bill.Product.FrmBuyReconciliation();
                    new FrmStyle(frmPrdReconciliation).SetPopFrmStyle(this);
                }
                frmPrdReconciliation.DetailNote(ReconciliationID);
                frmPrdReconciliation.ShowDialog();
            }
            if (TypeID == iTool)
            {
                if (frmToolReconciliation == null)
                {
                    frmToolReconciliation = new JERPApp.Finance.Report.Bill.Tool.FrmBuyReconciliation();
                    new FrmStyle(frmToolReconciliation).SetPopFrmStyle(this);
                }
                frmToolReconciliation.DetailNote(ReconciliationID);
                frmToolReconciliation.ShowDialog();
            }
        }
예제 #2
0
        private void ShowReceiptNote(long OrderNoteID, int SerialNo)
        {
            int  TypeID           = (int)this.cmbPayableType.SelectedValue;
            long ReconciliationID = -1;

            if (TypeID == iOutSrc)
            {
                this.accOutSrcReconciliation.GetParmOutSrcReconciliationsReconciliationIDByOutSrcOrderSerialNo(OrderNoteID,
                                                                                                               SerialNo,
                                                                                                               ref ReconciliationID);
                if (frmOutSrcReconciliation == null)
                {
                    frmOutSrcReconciliation = new JERPApp.Finance.Report.Bill.Manufacture.FrmOutSrcReconciliation();
                    new FrmStyle(frmOutSrcReconciliation).SetPopFrmStyle(this);
                }
                frmOutSrcReconciliation.DetailNote(ReconciliationID);
                frmOutSrcReconciliation.ShowDialog();
            }
            if (TypeID == iMtr)
            {
                this.accMtrReconciliation.GetParmBuyReconciliationsReconciliationIDByBuyOrderSerialNo(OrderNoteID,
                                                                                                      SerialNo,
                                                                                                      ref ReconciliationID);
                if (frmMtrReconciliation == null)
                {
                    frmMtrReconciliation = new JERPApp.Finance.Report.Bill.Material.FrmBuyReconciliation();
                    new FrmStyle(frmMtrReconciliation).SetPopFrmStyle(this);
                }
                frmMtrReconciliation.DetailNote(ReconciliationID);
                frmMtrReconciliation.ShowDialog();
            }
            if (TypeID == iOtherRes)
            {
                this.accOtherResReconciliation.GetParmBuyReconciliationsReconciliationIDByBuyOrderSerialNo(OrderNoteID,
                                                                                                           SerialNo,
                                                                                                           ref ReconciliationID);
                if (frmOtherReconciliation == null)
                {
                    frmOtherReconciliation = new JERPApp.Finance.Report.Bill.OtherRes.FrmBuyReconciliation();
                    new FrmStyle(frmOtherReconciliation).SetPopFrmStyle(this);
                }
                frmOtherReconciliation.DetailNote(ReconciliationID);
                frmOtherReconciliation.ShowDialog();
            }
            if (TypeID == iPrd)
            {
                this.accPrdReconciliation.GetParmBuyReconciliationsReconciliationIDByBuyOrderSerialNo(OrderNoteID,
                                                                                                      SerialNo,
                                                                                                      ref ReconciliationID);
                if (frmPrdReconciliation == null)
                {
                    frmPrdReconciliation = new JERPApp.Finance.Report.Bill.Product.FrmBuyReconciliation();
                    new FrmStyle(frmPrdReconciliation).SetPopFrmStyle(this);
                }
                frmPrdReconciliation.DetailNote(ReconciliationID);
                frmPrdReconciliation.ShowDialog();
            }
            if (TypeID == iTool)
            {
                this.accToolReconciliation.GetParmBuyReconciliationsReconciliationIDByBuyOrderSerialNo(OrderNoteID, SerialNo,
                                                                                                       ref ReconciliationID);
                if (frmToolReconciliation == null)
                {
                    frmToolReconciliation = new JERPApp.Finance.Report.Bill.Tool.FrmBuyReconciliation();
                    new FrmStyle(frmToolReconciliation).SetPopFrmStyle(this);
                }
                frmToolReconciliation.DetailNote(ReconciliationID);
                frmToolReconciliation.ShowDialog();
            }
        }