Exemplo n.º 1
0
        //تعديل مصروف خارجي

        //دفع باقي فلوس العيان
        public frmPaymentCRUD(frmPayments owner, List <string> parameters, int?visitID, int?patientID)
        {
            InitializeComponent();
            //من شاشة الدفع
            if (owner != null && parameters.Count > 0)
            {
                frmPayments            = owner;
                this.parameters        = parameters;
                numRequired.Value      = get_Required_Payment(int.Parse(parameters[6]));
                numPreviousPayed.Value = get_Previous_Payment(int.Parse(parameters[6]));
            }
            //من شاشة الحجز
            if (visitID.HasValue && patientID.HasValue)
            {
                this.visitID                = visitID;
                this.patientID              = patientID;
                numRequired.Value           = get_Required_Payment(visitID.Value);
                numPreviousPayed.Value      = get_Previous_Payment(visitID.Value);
                cmbxDirection.SelectedIndex = 1;
                txtPersonName.Text          = Patient.getPatientName_By_ID(patientID.Value);
                txtPersonName.Enabled       = false;
                cmbxDirection.Enabled       = false;
                lblDirection.Visible        = false;
                numOtherPayed.Visible       = false;
            }
        }
Exemplo n.º 2
0
        //اضافة مصروف خارجي
        public frmPaymentCRUD(frmPayments owner)
        {
            InitializeComponent();
            this.frmPayments         = owner;
            numRemaining.Visible     = false;
            numRequired.Visible      = false;
            numPayed.Visible         = false;
            numPreviousPayed.Visible = false;

            lblRemaining.Visible     = false;
            lblRequired.Visible      = false;
            lblPayed.Visible         = false;
            lblPreviousPayed.Visible = false;
        }