Exemplo n.º 1
0
        private void Search_Click(object sender, EventArgs e)
        {
            GVInfoService service = new GVInfoService();

            gvList = service.GetAllGVInfo();
            dgvSearchResult.DataSource = gvList;
        }
Exemplo n.º 2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            GvInfoVo gvVo = new GvInfoVo
            {
                GV_Code   = txtTruckCodeInput.Text,
                GV_Name   = txtTruckNameInput.Text,
                GV_Group  = cmbGVGroup.Text,
                GV_Status = "빈대차",
                Use_YN    = rbY.Checked ? "Y" : "N"
            };
            GVInfoService service = new GVInfoService();

            if (service.InsertGVInfo(gvVo))
            {
                frm.lblAlert.Text = "등록완료되었습니다";
                CommonClass.InitControl(pnlParent1);
                frm.btnS.PerformClick();
                cmbGVGroup.SelectedIndex = 1;
            }
            else
            {
                frm.lblAlert.Text = "등록 실패하였습니다.";
            }
        }