Beispiel #1
0
        private void lueDONGIAO_EditValueChanged(object sender, EventArgs e)
        {
            LookUpEdit editor    = sender as LookUpEdit;
            object     idpgiao   = editor.GetColumnValue("idpgiao");
            string     nguoigiao = editor.GetColumnValue("nguoigiao").ToString();

            txtNguoiGiao.Text = nguoigiao;

            int.TryParse(idpgiao.ToString(), out int id);
            getDetailsGIAOHANG(id);
        }
Beispiel #2
0
        private void lueDonMH_EditValueChanged(object sender, EventArgs e)
        {
            LookUpEdit editor  = sender as LookUpEdit;
            object     iddonmh = editor.GetColumnValue("iddonmh");
            object     idncc   = editor.GetColumnValue("idncc");

            luencc.EditValue = idncc;

            int.TryParse(iddonmh.ToString(), out int id);
            getDetailsDONMH(id);
        }
Beispiel #3
0
        private void lueNLieu_EditValueChanged(object sender, EventArgs e)
        {
            LookUpEdit editor  = sender as LookUpEdit;
            object     idhang  = editor.GetColumnValue("idhang");
            object     tenhang = editor.GetColumnValue("tenhang");
            object     slton   = editor.GetColumnValue("slton");
            object     nguong  = editor.GetColumnValue("nguong");

            txtslton.EditValue  = slton;
            txtnguong.EditValue = nguong;
        }
Beispiel #4
0
        private void lueTenSanPham_EditValueChanged(object sender, EventArgs e)
        {
            LookUpEdit lue = sender as LookUpEdit;

            if (lue.EditValue != null)
            {
                gvGrid.SetFocusedRowCellValue(colSP_MA, lue.GetColumnValue("SP_MA"));
                gvGrid.SetFocusedRowCellValue(colDVT_ID, lue.GetColumnValue("DVT_ID"));
                gvGrid.SetFocusedRowCellValue(colSP_HAMLUONG, lue.GetColumnValue("SP_HAMLUONG"));
                gvGrid.SetFocusedRowCellValue(colSP_DANGDUNG, lue.GetColumnValue("SP_DANGDUNG"));
            }
        }
Beispiel #5
0
 public void VersionCheckedBox(CheckEdit ce, LookUpEdit le)
 {
     if (le.ItemIndex == -1)
     {
         return;
     }
     if (Selected.GameState)
     {
         Selected.GameVersion  = le.GetColumnValue("GameVersion").ToString();
         Selected.VersionState = rw.SetGameVersion(Selected.GameVersion);
     }
     Selected.TrainerAvailability = (bool)le.GetColumnValue("Availability");
 }
Beispiel #6
0
        private void luenlieu_EditValueChanged_1(object sender, EventArgs e)
        {
            LookUpEdit editor  = sender as LookUpEdit;
            object     tenhang = editor.GetColumnValue("tenhang");

            txttenhang.Text = tenhang.ToString();
        }
Beispiel #7
0
        private void repositoryItemLookUpEdit3_EditValueChanged(object sender, EventArgs e)
        {
            LookUpEdit edit = griViewIssueMedine.ActiveEditor as LookUpEdit;

            if (edit != null)
            {
                object value = edit.GetColumnValue("ProductId");
                CellvaluechnagedForIssueMedicine(value.ToString());

                string issueMedine = griViewIssueMedine.GetRowCellValue(griViewIssueMedine.RowCount - 1, "ProductId").ToString();
                if (issueMedine != string.Empty)
                {
                    DataRow row = IssueDatatble.NewRow();
                    IssueDatatble.Rows.Add(row);
                }
            }
        }
Beispiel #8
0
        public void GameCheckedBox(CheckEdit ce, LookUpEdit le)
        {
            if (le.ItemIndex != -1)
            {
                // var procName = le.GetColumnValue("ProcessName");
                var procName           = le.EditValue.ToString();
                var gameName           = le.GetColumnValue("DisplayName").ToString();
                var procNameWithoutExe = procName.ToString().Split('.')[0];
                // Selected.GameProcessName = procNameWithoutExe;
                // Selected.GameName = gameName;
                Selected.GameState = rw.SetGameSelection(gameName, procNameWithoutExe);
                // if(rw.Selected.GameProcess != null)
                // Selected.GameState = string.Equals(procNameWithoutExe, rw.Selected.GameProcess.ProcessName, StringComparison.CurrentCultureIgnoreCase);
            }

            ce.Checked = Selected.GameState;
        }
Beispiel #9
0
 private void GL_Repository_EditValueChanged(object sender, EventArgs e)
 {
     if (sender != null)
     {
         LookUpEdit lue = sender as LookUpEdit;
         if (lue != null)
         {
             object obj = lue.EditValue;
             if (obj == null || obj == DBNull.Value)
             {
                 gvDetail.SetFocusedRowCellValue(colGLAcctDesc, "");
             }
             else
             {
                 gvDetail.SetFocusedRowCellValue(colGLAcctDesc, lue.GetColumnValue("DESCRIPTION"));
             }
         }
     }
 }
Beispiel #10
0
 public void SetComboBoxEvent(LookUpEdit leGame, LookUpEdit leVersion)
 {
     leGame.EditValueChanged += (sender, args) =>
     {
         var gameName           = leGame.GetColumnValue("DisplayName").ToString();
         var procNameWithoutExe = leGame.EditValue.ToString().Split('.')[0];
         Selected.GameProcessName = procNameWithoutExe;
         Selected.GameName        = gameName;
         UpdateVersionCombobox(leGame, leVersion);
     };
     leVersion.EditValueChanged += (sender, args) =>
     {
         if (!Selected.GameState)
         {
             return;
         }
         Selected.GameVersion = leVersion.GetColumnValue("GameVersion").ToString();
         rw.SetGameVersion(Selected.GameVersion);
         // rw.LoadGameVersion(Selected.GameProcess);
     };
 }