private void frmOPDetails_Load(object sender, EventArgs e)
        {
            OrderOfPayment OP = new OrderOfPayment();
            Dictionary <string, string> data = OP.getOPDataWOOR(OPNo);

            mtOPNo.Text       = "" + OPNo;
            mtPayor.Text      = data["Payor"];
            mtTotal.Text      = data["Amount"];
            mtDateIssued.Text = data["DateIssued"];
            mtPaid.Text       = OP.getPaymentStatus();
            mtOPType.Text     = OP.getOPType();
            this.ControlBox   = true;

            string[][] particulars = OP.getOrderOfPaymentItem(OPNo);
            new clsDB().Con().listViewTransferData(particulars, listView1);
        }
Exemple #2
0
        private void frmOPDetails_Load(object sender, EventArgs e)
        {
            OrderOfPayment OP = new OrderOfPayment();
            Dictionary <string, string> data = OP.getOPDataWOOR(OPNo);

            mtOPNo.Text       = "" + OPNo;
            mtPayor.Text      = data["Payor"];
            mtTotal.Text      = data["Amount"];
            mtDateIssued.Text = data["DateIssued"];
            mtPaid.Text       = OP.getPaymentStatus();
            mtOPType.Text     = OP.getOPType();
            this.ControlBox   = true;

            /*
             * string[][] particulars =  OP.getOrderOfPaymentItem(OPNo);
             * new clsDB().Con().listViewTransferData(particulars, listView1);
             * */
            new clsDB().Con().FillLvw(listView1, "SELECT particular, Assess.AssessmentID, TPD.Amount, Assess.Is_Misc, Assess.ShortName FROM tbl_PayOrder_Details as TPD LEFT JOIN Assessment as Assess ON TPD.particular LIKE Assess.AssessmentName WHERE OPSeqNo =  " + OPNo);
        }