Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     db = new DataAccess("park1", "park1");
     if (db.CheckIdPwd(textBox1.Text.ToString(), textBox2.Text.ToString()))
     {
         this.Visible = false;
         if (checkBox1.Checked == true)
         {
             //관리자모드
             AdminSetting adminSetting = new AdminSetting(DB);
             adminSetting.Owner = this;
             adminSetting.ShowDialog();
         }
         else
         {
             MainDashboard dash = new MainDashboard(db);
             dash.Owner = this;
             dash.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("아이디 또는 비밀번호 오류입니다.");
     }
 }
Ejemplo n.º 2
0
 public void ChangeChargeInfo(AdminSetting admin)
 {
     DS.Clear();
     adapter.SelectCommand = new OracleCommand("select * from charge_plan where branch_id='" + branch_id + "' order  by time", conn);
     adapter.Fill(DS, "ChargePlan");
     DS.Tables["ChargePlan"].Select("time<>'day'")[0]["charge"]  = admin.HourPay1;
     DS.Tables["ChargePlan"].Select("time<>'day'")[1]["charge"]  = admin.HourPay2;
     DS.Tables["ChargePlan"].Select("time<>'day'")[2]["charge"]  = admin.HourPay3;
     DS.Tables["ChargePlan"].Select("time = 'day'")[0]["charge"] = admin.DayPay;
     adapter.Update(DS, "ChargePlan");
     DS.AcceptChanges();
     MessageBox.Show("가격수정이 완료되었습니다.");
 }
Ejemplo n.º 3
0
 private void EditSit_Load(object sender, EventArgs e)
 {
     owner         = (AdminSetting)Owner;
     textBox1.Text = x;
     textBox2.Text = y;
 }
 public ChangeBranchInfo(AdminSetting admin)
 {
     InitializeComponent();
     this.admin = admin;
 }
Ejemplo n.º 5
0
 private void ChangeLoginInfo_Load(object sender, EventArgs e)
 {
     admin = (AdminSetting)Owner;
 }