Пример #1
0
        private void LoadReceiptDescriptions()
        {
            if (radioGpC.EditValue == null || lkAccount.EditValue == null)
            {
                return;
            }

            rctPrintout = new BLL.ReceiptConfirmationPrintout();
            if (radioGpC.EditValue.ToString() == "GRV")
            {
                rctPrintout.GetGRVAndiGRVDescriptions(Convert.ToInt32(lkAccount.EditValue));
            }
            else if (radioGpC.EditValue.ToString() == "GRNF")
            {
                rctPrintout.GetGRNFDescriptions(Convert.ToInt32(lkAccount.EditValue));
            }
            else if (radioGpC.EditValue.ToString() == "SRM")
            {
                rctPrintout.GetSRMDescriptions(Convert.ToInt32(lkAccount.EditValue));
                grdViewSTVForChecking.Columns["Supplier"].Caption = "Returned From";
            }
            grdSTVs.DataSource = rctPrintout.DefaultView;
        }
        private void LoadReceiptDescriptions()
        {
            if(radioGpC.EditValue == null || lkAccount.EditValue == null)
            {
                return;
            }

            rctPrintout = new BLL.ReceiptConfirmationPrintout();
            if (radioGpC.EditValue.ToString() == "GRV")
            {
                rctPrintout.GetGRVAndiGRVDescriptions(Convert.ToInt32(lkAccount.EditValue));
            }
            else if (radioGpC.EditValue.ToString() == "GRNF")
            {
                rctPrintout.GetGRNFDescriptions(Convert.ToInt32(lkAccount.EditValue));
            }
            else if (radioGpC.EditValue.ToString() == "SRM")
            {
                rctPrintout.GetSRMDescriptions(Convert.ToInt32(lkAccount.EditValue));
                grdViewSTVForChecking.Columns["Supplier"].Caption = "Returned From";
            }
            grdSTVs.DataSource = rctPrintout.DefaultView;
        }