public FormNewMemberPackage(string membershipID, ACMSLogic.MemberPackage memberPackage)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     myMembershipID  = membershipID;
     myMemberPackage = memberPackage;
     //
     // TODO: Add any constructor code after InitializeComponent call
     //
     Init();
 }
 public FormNewMemberPackage(string membershipID, ACMSLogic.MemberPackage memberPackage)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     myMembershipID = membershipID;
     myMemberPackage = memberPackage;
     //
     // TODO: Add any constructor code after InitializeComponent call
     //
     Init();
 }
Beispiel #3
0
        public UpdateMemberGiro(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            myPOS = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            Init();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Beispiel #4
0
        public UpdateMemberGiro(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            myPOS           = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            Init();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
        public FormTransferMemberPackage(ACMSLogic.MemberPackage memberPackage, string strCurrMemberID, int packageID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myCurrMemberID = strCurrMemberID;
            myPackageID = packageID;
            myMemberPackage = memberPackage;
            labelHeader.Text = string.Format("Transfer PackageID = {0} of Member {1}.", packageID, strCurrMemberID);
            Init();
        }
Beispiel #6
0
        public FormUpdateMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nExtensionID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myExtensionID   = nExtensionID;
            myMemberPackage = memberPackage;
            label6.Text     = "Update Extension ID : " + myExtensionID;

            Init();
        }
        public FormUpdateMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nExtensionID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myExtensionID= nExtensionID;
            myMemberPackage = memberPackage;
            label6.Text = "Update Extension ID : " + myExtensionID;

            Init();
        }
        public FormTransferMemberPackage(ACMSLogic.MemberPackage memberPackage, string strCurrMemberID, int packageID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myCurrMemberID   = strCurrMemberID;
            myPackageID      = packageID;
            myMemberPackage  = memberPackage;
            labelHeader.Text = string.Format("Transfer PackageID = {0} of Member {1}.", packageID, strCurrMemberID);
            Init();
        }
        public FormUpgradePackageNew(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            myPOS = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            myPackage = new ACMSLogic.PackageCode();
            myCreditAccount = new ACMSLogic.CreditAccount();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection = new SqlConnection(connectionString);
            Init();
        }
Beispiel #10
0
        public FormUpgradePackageNew(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            myPOS            = pos;
            myMemberPackage  = new ACMSLogic.MemberPackage();
            myPackage        = new ACMSLogic.PackageCode();
            myCreditAccount  = new ACMSLogic.CreditAccount();
            connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"];
            connection       = new SqlConnection(connectionString);
            Init();
        }
Beispiel #11
0
        public FormNewMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nPackageID, DataRow pkgdr)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myMemberPackageID     = nPackageID;
            myMemberPackage       = memberPackage;
            lblnewPackageExt.Text = "New Extension for Member Package ID : " + myMemberPackageID;

            existPkg = pkgdr;

            dtEdtLeaveEndDate.DateTime   = DateTime.Now.Date;
            dtEdtLeaveStartDate.DateTime = DateTime.Now.Date;
            dtEdtNewExpiry.DateTime      = ACMS.Convert.ToDBDateTime(pkgdr["dtExpiryDate"]);

            Init();
        }
        public FormNewMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nPackageID, DataRow pkgdr)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myMemberPackageID = nPackageID;
            myMemberPackage = memberPackage;
            lblnewPackageExt.Text = "New Extension for Member Package ID : " + myMemberPackageID;

            existPkg=pkgdr;

            dtEdtLeaveEndDate.DateTime = DateTime.Now.Date;
            dtEdtLeaveStartDate.DateTime = DateTime.Now.Date;
            dtEdtNewExpiry.DateTime = ACMS.Convert.ToDBDateTime(pkgdr["dtExpiryDate"]);

            Init();
        }
        public FormNewMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nPackageID, bool bGiro, DataRow pkgdr)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myMemberPackageID     = nPackageID;
            myMemberPackage       = memberPackage;
            lblnewPackageExt.Text = "New Extension for Member Package ID : " + myMemberPackageID;

            existPkg = pkgdr;

            dtEdtLeaveEndDate.DateTime   = DateTime.Now.Date;
            dtEdtLeaveStartDate.DateTime = DateTime.Now.Date;
            dtEdtNewExpiry.DateTime      = ACMS.Convert.ToDBDateTime(pkgdr["dtExpiryDate"]);


            if (bGiro == true)
            {
                dtEdtLeaveStartDate.DateTime = ACMS.Convert.ToDBDateTime(pkgdr["dtExpiryDate"]);
                DateTime startDate = dtEdtLeaveStartDate.DateTime;
                DateTime endDate   = startDate.AddMonths(1);
                endDate = endDate.AddDays(-1);
                dtEdtLeaveStartDate.EditValue = dtEdtLeaveStartDate.DateTime;
                dtEdtLeaveEndDate.EditValue   = endDate;
                InitLookupEdit();
                BindGIROData();
            }
            else
            {
                Init();
            }
        }
        public FormNewMemberPackageExtension(ACMSLogic.MemberPackage memberPackage, int nPackageID, bool bGiro, DataRow pkgdr)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myMemberPackageID = nPackageID;
            myMemberPackage = memberPackage;
            lblnewPackageExt.Text = "New Extension for Member Package ID : " + myMemberPackageID;

            existPkg=pkgdr;

            dtEdtLeaveEndDate.DateTime = DateTime.Now.Date;
            dtEdtLeaveStartDate.DateTime = DateTime.Now.Date;
            dtEdtNewExpiry.DateTime = ACMS.Convert.ToDBDateTime(pkgdr["dtExpiryDate"]);

            if (bGiro == true)
            {

                dtEdtLeaveStartDate.DateTime = ACMS.Convert.ToDBDateTime(pkgdr["dtExpiryDate"]);
                DateTime startDate = dtEdtLeaveStartDate.DateTime;
                DateTime endDate = startDate.AddMonths(1);
                endDate = endDate.AddDays(-1);
                dtEdtLeaveStartDate.EditValue = dtEdtLeaveStartDate.DateTime;
                dtEdtLeaveEndDate.EditValue = endDate;
                InitLookupEdit();
                BindGIROData();
            }
            else
            {
                Init();
            }
        }
Beispiel #15
0
 //steven 21052013
 public static void CalculateMemberPackageBalance(string strPackageCode, string strMemberShipID, DataTable memberPackageTable)
 {
     ACMSLogic.MemberPackage m = new ACMSLogic.MemberPackage();
     m.myDataTable = memberPackageTable;
     m.CalculateBalance(strMemberShipID, strPackageCode);
 }
Beispiel #16
0
        public FormUpgradePackage(ACMSLogic.POS pos)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            comboBoxEdit1.Properties.Items.AddRange(new string [] {"Normal Package", "Credit Package"});
            myPOS = pos;
            myMemberPackage = new ACMSLogic.MemberPackage();
            myPackage = new ACMSLogic.PackageCode();
            myCreditAccount = new ACMSLogic.CreditAccount();
            Init();
        }
Beispiel #17
0
        public override void Refresh()
        {
            if (myStrMemberShipID != "")
            {
                if (myIsServiceSession)
                {
                    ACMSDAL.TblMemberPackage memberPackage = new ACMSDAL.TblMemberPackage();
                    myDataTable = memberPackage.GetActiveMemberPackageForServiceSession(myStrMemberShipID);
                    Init();
                }
                else
                {
                    ACMSDAL.TblMemberPackage memberPackage = new ACMSDAL.TblMemberPackage();
                    myDataTable = memberPackage.GetAllMemberPackageForClassAttendance(myStrMemberShipID);
                    ACMSLogic.MemberPackage myMemberPackage = new ACMSLogic.MemberPackage();
                    myMemberPackage.CalculateMemberPackageBalance(myStrMemberShipID, myDataTable);
                    foreach (DataRow dr in myDataTable.Rows)
                    {
                        if (Convert.ToInt32(dr["Balance"]) <= 0)
                            dr.Delete();
                    }
                    myDataTable.AcceptChanges();

                    Init();
                }
            }
        }