Exemple #1
0
        public void GetApplicationDetail()
        {
            ApplicationDetailTable = applicationDetail.SelectAppDetailByTransNo(applicationInfo.TransNo, " and [IsRepetition]=0 ");
            dgvApplyDetails.AutoGenerateColumns = false;
            dgvApplyDetails.DataSource          = ApplicationDetailTable;

            txtApplicantsNo.Text     = applicationInfo.ApplicantsNo;
            txtApplicantsName.Text   = applicationInfo.ApplicantsName;
            txtDate.Text             = applicationInfo.ApplicantsDate;
            txtLocation.Text         = applicationInfo.Location;
            txtPurchaseLocation.Text = applicationInfo.PurchaseLocation;
            txtApproval.Text         = applicationInfo.ApprovalName;
            if (ctrlType == "未审核")
            {
                txtApproval2.Text = "";
            }
            else
            {
                txtApproval2.Text = applicationInfo.ApprovalName2;
            }
            txtApprovalTime.Text = applicationInfo.ApprovalDate;
            txtStaffName.Text    = applicationInfo.StaffName;
            txtSalesDate.Text    = applicationInfo.SalesDate;

            if (txtApproval.Text == "")
            {
                txtApprovalTime.Text = "";
            }
            //if (txtApproval2.Text == "") txtApprovalTime2.Text = "";
            if (txtStaffName.Text == "")
            {
                txtSalesDate.Text = "";
            }
        }
        void GetDataTable()
        {
            applicationInfo.applicationDT = applicationInfo.SelectApplicationByTransNo(OldTransNo);
            AddApplicationDT = applicationDetail.SelectAppDetailByTransNo(applicationInfo.TransNo, "");
            AddApplicationDT.Columns.Add("IsSpecial", Type.GetType("System.Int32"));
            dgvApplyProducts.Columns.Add("IsSpecial", "IsSpecial");
            dgvApplyProducts.Columns["IsSpecial"].Visible          = false;
            dgvApplyProducts.Columns["IsSpecial"].DataPropertyName = "IsSpecial";
            dgvApplyProducts.AutoGenerateColumns = false;
            dgvApplyProducts.DataSource          = AddApplicationDT;

            dgvApplyGift.AutoGenerateColumns = false;
            dgvApplyGift.DataSource          = AddApplicationDT;

            int MaxID = 0;

            foreach (DataRow dr in AddApplicationDT.Rows)
            {
                if ((int)dr["ID"] > MaxID)
                {
                    MaxID  = (int)dr["ID"];
                    codeID = int.Parse(dr["CodeID"].ToString());
                }
            }
        }
Exemple #3
0
        public void GetApplicationDetail()
        {
            ApplicationDetailTable = applicationDetail.SelectAppDetailByTransNo(applicationInfo.TransNo, " and [IsRepetition]=0 ");
            foreach (DataRow dr in ApplicationDetailTable.Rows)
            {
                dr["IsSuccess"] = 0;
            }
            dgvApplyDetails.AutoGenerateColumns = false;
            dgvApplyDetails.DataSource          = ApplicationDetailTable;

            txtApplicantsNo.Text     = applicationInfo.ApplicantsNo;
            txtApplicantsName.Text   = applicationInfo.ApplicantsName;
            txtDate.Text             = applicationInfo.ApplicantsDate;
            txtLocation.Text         = applicationInfo.Location;
            txtPurchaseLocation.Text = applicationInfo.PurchaseLocation;
            txtApproval.Text         = applicationInfo.ApprovalName;
            txtApprovalTime.Text     = applicationInfo.ApprovalDate;
            txtApproval2.Text        = applicationInfo.ApprovalName2;
            txtApprovalTime2.Text    = applicationInfo.ApprovalDate2;
            txtStaffName.Text        = applicationInfo.StaffName;

            if (txtApproval.Text == "")
            {
                txtApprovalTime.Text = "";
            }
            if (txtApproval2.Text == "")
            {
                txtApprovalTime2.Text = "";
            }
            if (txtStaffName.Text == "")
            {
                txtSalesDate.Text = "";
            }
        }
Exemple #4
0
        void GetDataTable()
        {
            AddApplicationDT            = applicationDetail.SelectAppDetailByTransNo("0", "");
            dgvApplyProducts.DataSource = AddApplicationDT;

            dgvApplyGift.AutoGenerateColumns = false;
            dgvApplyGift.DataSource          = AddApplicationDT;
        }
Exemple #5
0
        void GetDataTable()
        {
            AddApplicationDT = applicationDetail.SelectAppDetailByTransNo("0", "");
            AddApplicationDT.Columns.Add("IsSpecial", Type.GetType("System.Int32"));
            dgvApplyProducts.Columns.Add("IsSpecial", "IsSpecial");
            dgvApplyProducts.Columns["IsSpecial"].Visible          = false;
            dgvApplyProducts.Columns["IsSpecial"].DataPropertyName = "IsSpecial";
            dgvApplyProducts.AutoGenerateColumns = false;
            dgvApplyProducts.DataSource          = AddApplicationDT;

            dgvApplyGift.AutoGenerateColumns = false;
            dgvApplyGift.DataSource          = AddApplicationDT;
        }
Exemple #6
0
        public void GetApplicationDetail()
        {
            ApplicationDetailTable = applicationDetail.SelectAppDetailByTransNo(applicationInfo.TransNo, "");
            dgvApplyDetails.AutoGenerateColumns = false;
            dgvApplyDetails.DataSource          = ApplicationDetailTable;

            txtApplicantsNo.Text     = applicationInfo.ApplicantsNo;
            txtApplicantsName.Text   = applicationInfo.ApplicantsName;
            txtDate.Text             = applicationInfo.ApplicantsDate;
            txtLocation.Text         = applicationInfo.Location;
            txtPurchaseLocation.Text = applicationInfo.PurchaseLocation;
            txtApproval.Text         = applicationInfo.ApprovalName;
            txtApprovalTime.Text     = applicationInfo.ApprovalDate;
            txtApproval2.Text        = applicationInfo.ApprovalName2;
            txtApprovalTime2.Text    = applicationInfo.ApprovalDate2;
            txtStaffName.Text        = applicationInfo.StaffName;
            txtSalesDate.Text        = applicationInfo.SalesDate;
        }
        public void GetApplicationDetail()
        {
            ApplicationDetailTable = applicationDetail.SelectAppDetailByTransNo(applicationInfo.TransNo, "");
            dgvApplyDetails.AutoGenerateColumns = false;
            dgvApplyDetails.DataSource          = ApplicationDetailTable;

            txtApplicantsNo.Text     = applicationInfo.ApplicantsNo;
            txtApplicantsName.Text   = applicationInfo.ApplicantsName;
            txtDate.Text             = applicationInfo.ApplicantsDate;
            txtLocation.Text         = applicationInfo.Location;
            txtPurchaseLocation.Text = applicationInfo.PurchaseLocation;
            txtApproval2.Text        = applicationInfo.ApprovalName2;
            txtApprovalTime2.Text    = applicationInfo.ApprovalDate2;
            txtStaffName.Text        = applicationInfo.StaffName;
            txtSalesDate.Text        = applicationInfo.SalesDate;
            if (strCtrlType == "未审核")
            {
                txtApproval.Text = "";
            }
            else
            {
                txtApproval.Text = applicationInfo.ApprovalName;
            }

            if (txtApproval2.Text == "")
            {
                txtApprovalTime2.Text = "";
            }
            if (txtStaffName.Text == "")
            {
                txtSalesDate.Text = "";
            }

            if (applicationInfo.AppState < 0)
            {
                txtApproval.Text      = "自动审核失败";
                BtnApprovalOK.Enabled = false;
                btnConfirm.Enabled    = false;
                //btnEdit.Enabled = false;
                //btnEdit2.Enabled = false;
            }
        }
        public void GetApplicationDetail()
        {
            ApplicationDetailTable = applicationDetail.SelectAppDetailByTransNo(applicationInfo.TransNo, " and [IsRepetition]=0 ");
            dgvApplyDetails.AutoGenerateColumns = false;
            dgvApplyDetails.DataSource          = ApplicationDetailTable;

            txtApplicantsNo.Text     = applicationInfo.ApplicantsNo;
            txtApplicantsName.Text   = applicationInfo.ApplicantsName;
            txtDate.Text             = applicationInfo.ApplicantsDate;
            txtLocation.Text         = applicationInfo.Location;
            txtPurchaseLocation.Text = applicationInfo.PurchaseLocation;
            txtApproval.Text         = applicationInfo.ApprovalName;
            dtApprovalTime.Text      = applicationInfo.ApprovalDate;
            txtApproval2.Text        = applicationInfo.ApprovalName2;
            txtApprovalTime2.Text    = applicationInfo.ApprovalDate2;
            txtStaffName.Text        = applicationInfo.StaffName;
            txtSalesDate.Text        = applicationInfo.SalesDate;

            if (txtApproval.Text == "")
            {
                dtApprovalTime.Text = "";
            }
            if (txtApproval2.Text == "")
            {
                txtApprovalTime2.Text = "";
            }
            if (txtStaffName.Text == "")
            {
                txtSalesDate.Text = "";
            }

            if (applicationInfo.AppState < 0)
            {
                txtApproval.Text   = "自动审核失败";
                btnConfirm.Enabled = false;
            }
        }