Esempio n. 1
0
        private void ListStform_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Administration.List.StformList frmList = new Administration.List.StformList();
            frmList.StartPosition = FormStartPosition.CenterScreen;

            frmList.ShowDialog();
        }
Esempio n. 2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            bool isDelete = objStform.DeleteSTById(ST_Id);

            if (isDelete)
            {
                MessageBox.Show("Delete Successfully!");
                ST_Id = 0;
                ClearControls();
                Administration.List.StformList frmList = new Administration.List.StformList();
                frmList.StartPosition = FormStartPosition.CenterScreen;

                frmList.ShowDialog();
                FillSTFormInfo();
            }
        }
Esempio n. 3
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            STFormMasterModel objModel = new STFormMasterModel();

            objModel.Name      = tbxName.Text.Trim();
            objModel.PrintName = tbxPrintname.Text.Trim();
            objModel.STRegType = cbxStregtype.SelectedItem.ToString();

            objModel.STF_Id = ST_Id;

            bool isSuccess = objStform.UpdateSTF(objModel);

            if (isSuccess)
            {
                MessageBox.Show("Update Successfully!");
                ST_Id = 0;
                ClearControls();
                Administration.List.StformList frmList = new Administration.List.StformList();
                frmList.StartPosition = FormStartPosition.CenterScreen;

                frmList.ShowDialog();
                FillSTFormInfo();
            }
        }