public FormNewServiceSessionSPA_IPL(int tmpCurrentPackageBalance, int nPackageID, ACMSLogic.User User, string CurrentMembershipID, int MemberPackageCategoryID, string MemberPackageStrPackageCode, bool IsFromCreditUsage) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // oUser = User; label3.Text = "Appointment Time"; label4.Text = "Therapist"; checkEdit1.Visible = false; myPackageID = nPackageID; lblPackageID.Text = nPackageID.ToString(); myMemberShipID = CurrentMembershipID; myPackageCategoryID = MemberPackageCategoryID; myPackageCode = MemberPackageStrPackageCode; lblPackageCode.Text = MemberPackageStrPackageCode; lblCurrentPackageBalance.Text = tmpCurrentPackageBalance.ToString(); myIsFromCreditUsage = IsFromCreditUsage; TblPackage package = new TblPackage(); lblPackageDesc.Text = package.GetPackageDescription(MemberPackageStrPackageCode); //lblPackageDesc.Text = "QI SPA 10 X INDIAN HEAD MASSAGE X 30 MIN BACK MASSAGE (10 SESSIONS)"; lkpEdtServiceCode.Enabled = true; this.Text = "New Spa & IPL Package Attendance"; dtEditDate.DateTime = DateTime.Now.Date; dtEdtStartTime.DateTime = DateTime.Now.Date; dtTreatment.DateTime = DateTime.Now.Date; Init(); if (myIsFromCreditUsage) { dtEditDate.DateTime = DateTime.Today.Date; lkpEdtBranchCode.EditValue = ACMSLogic.User.BranchCode; dtTreatment.DateTime = DateTime.Today.Date; //dtEditDate.Properties.ReadOnly = true; //lkpEdtBranchCode.Properties.ReadOnly = true; //dtTreatment.Properties.ReadOnly = true; } }
public FormNewServiceSessionPT(int tmpCurrentPackageBalance, int nPackageID, ACMSLogic.User User, string CurrentMembershipID, int MemberPackageCategoryID, string MemberPackageStrPackageCode, bool IsFromCreditUsage) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // oUser = User; myPackageID = nPackageID; lblPackageID.Text = nPackageID.ToString(); myMemberShipID = CurrentMembershipID; myPackageCategoryID = MemberPackageCategoryID; myPackageCode = MemberPackageStrPackageCode; lblPackageCode.Text = MemberPackageStrPackageCode; lblCurrentPackageBalance.Text = tmpCurrentPackageBalance.ToString(); myIsFromCreditUsage = IsFromCreditUsage; TblPackage package = new TblPackage(); lblPackageDesc.Text = package.GetPackageDescription(MemberPackageStrPackageCode); //lblPackageDesc.Text = "QI SPA 10 X INDIAN HEAD MASSAGE X 30 MIN BACK MASSAGE (10 SESSIONS)"; label3.Text = "Session Time"; label4.Text = "Personal Trainer"; lkpEdtServiceCode.Enabled = true; this.Text = "New PT Package Attendance"; // bforfeit= chkforfeit.Checked; Init(); //if (myIsFromCreditUsage) //{ //dtEditDate.Properties.ReadOnly = true; //lkpEdtBranchCode.Properties.ReadOnly = true; //} }