//private void GenerateID() //{ // Conn obcon = new Conn(); // SqlConnection ob = new SqlConnection(obcon.strCon); // SqlDataAdapter da = new SqlDataAdapter(); // da.SelectCommand = new SqlCommand(); // da.SelectCommand.Connection = ob; // SqlCommand cmd = da.SelectCommand; // cmd.CommandText = "Select isnull(max(ID),0)+1 as ID from Cabin"; // cmd.CommandType = CommandType.Text; // DataTable dt = new DataTable(); // da.Fill(dt); // if (dt.Rows.Count > 0) // { // idTextBox.Text = dt.Rows[0]["Id"].ToString(); // } //} private void CabinSetup_Load(object sender, EventArgs e) { Floor defaultFloor = new Floor(); defaultFloor.FloorName = "--Select--"; defaultFloor.Id = -1; List <Floor> floors = new List <Floor>(); floors.Add(defaultFloor); floors.AddRange(aFloorManager.GetAllFloors()); floorComboBox.DisplayMember = "FloorName"; floorComboBox.ValueMember = "Id"; floorComboBox.DataSource = floors; Category defaultCategory = new Category(); defaultCategory.CategoryName = "--Select--"; defaultCategory.Id = -1; List <Category> categories = new List <Category>(); categories.Add(defaultCategory); categories.AddRange(aCategoryManager.GetAllCategories()); categoryComboBox.DisplayMember = "CategoryName"; categoryComboBox.ValueMember = "Id"; categoryComboBox.DataSource = categories; PopulateCabinListView(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.groupBox1, this.Name); //GenerateID(); //GetAllFloor(); //GetAllCategory(); }
public Operation() { InitializeComponent(); ActiveControl = cmbPatienId; aOperationScheduleManager = new OperationScheduleManager(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.groupBox3, this.Name); }
public OPInformation() { InitializeComponent(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.panel9, this.Name); SetNew(); time(); }
public MedicalTreatment() { InitializeComponent(); aMedicalManager = new MedicalManager(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.panel5, this.Name); btnUpdate.Enabled = false; btnDelete.Enabled = false; }
public PatientAmountReceive() { InitializeComponent(); aRefferedInfoManager = new RefferedInfoManager(); amountManager = new RceivedAmountManager(); SetNew(); PopulateGridViewBillCollection(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.panel7, this.Name); }
//Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here //Events Start here #region private void IPAdmission_Load(object sender, EventArgs e) { Control buttonControl = new ButtonPermissionAccess().UserButton(this.panel3, this.Name); //chkCabin.Checked = false; btnEdit.Enabled = false; btnDelete.Enabled = false; LoadData(); // GetAllCabin(); this.ActiveControl = txtName; cmbWardorCabin.Text = "All Cabin"; rdFree.Checked = true; ChkFreeOccupied(); }
public NICUBill(string menuName) { InitializeComponent(); Control buttonControl = new ButtonPermissionAccess().UserButton(this, this.Name); //UserMaster master = GlobalPermission.UserPermission.FirstOrDefault(a => a.FormName == this.Name && a.Permission && a.MenuName==menuName); //if (master!=null) //{ // if (master.FormCaption == "IPD") // { // toggleSwitch1.IsOn = false; // } // else if (master.FormCaption == "OPD") // { // toggleSwitch1.IsOn = true; // } // toggleSwitch1.Enabled = false; //} //radioRdPathlogy.Checked = true; }
public OperationNote() { InitializeComponent(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.groupControl1, this.Name); }
public RoomSetup() { InitializeComponent(); SetNew(); Control buttonControl = new ButtonPermissionAccess().UserButton(this, this.Name); }
public WardCabinCategorySetup() { InitializeComponent(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.categorygroupBox, this.Name); }
public PathologyMaster() { InitializeComponent(); SetNew(); Control buttonControl = new ButtonPermissionAccess().UserButton(this, this.Name); }
public RefferedUi() { InitializeComponent(); aRefferedInfoManager = new RefferedInfoManager(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.panel1, this.Name); }
public Consultent_UI() { InitializeComponent(); ActiveControl = txtDoctorname; Control buttonControl = new ButtonPermissionAccess().UserButton(this, this.Name); }
public NICUDischargeRequest() { InitializeComponent(); Control buttonControl = new ButtonPermissionAccess().UserButton(this.groupControl1, this.Name); }
public WardSetup() { InitializeComponent(); ActiveControl = wardNameTextBox; ResetAllData(); Control buttonControl = new ButtonPermissionAccess().UserButton(this, this.Name); }
public DoctorSpecialization() { InitializeComponent(); SetNew(); Control buttonControl = new ButtonPermissionAccess().UserButton(this, this.Name); }