示例#1
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
            curIndex = grdViewPackListTemp.RowCount;

            frmPackListTempDetail DiagnosisDetailForm = new frmPackListTempDetail();

            DiagnosisDetailForm.txtPackListTempName.Tag  = "0";
            DiagnosisDetailForm.txtPackListTempName.Text = string.Empty;
            DiagnosisDetailForm.cmdSave.Tag = "Add";
            DiagnosisDetailForm.ShowDialog();

            BindingPackListTemp();
        }
示例#2
0
        private void Edit()
        {
            curIndex = grdViewPackListTemp.GetDataSourceRowIndex(grdViewPackListTemp.FocusedRowHandle);

            frmPackListTempDetail PackListTempDetailForm = new frmPackListTempDetail();

            PackListTempDetailForm.txtPackListTempName.Tag  = drPackListTemp.ItemArray[0].ToString();
            PackListTempDetailForm.txtPackListTempName.Text = drPackListTemp.ItemArray[1].ToString();
            PackListTempDetailForm.chkIsActive.Checked      = bool.Parse(drPackListTemp.ItemArray[2].ToString());
            PackListTempDetailForm.cmdSave.Tag = "Edit";

            PackListTempDetailForm.ShowDialog();

            BindingPackListTemp();
        }
示例#3
0
        private void Edit()
        {

            curIndex = grdViewPackListTemp.GetDataSourceRowIndex(grdViewPackListTemp.FocusedRowHandle);

            frmPackListTempDetail PackListTempDetailForm = new frmPackListTempDetail();

            PackListTempDetailForm.txtPackListTempName.Tag = drPackListTemp.ItemArray[0].ToString();
            PackListTempDetailForm.txtPackListTempName.Text = drPackListTemp.ItemArray[1].ToString();
            PackListTempDetailForm.chkIsActive.Checked = bool.Parse(drPackListTemp.ItemArray[2].ToString());
            PackListTempDetailForm.cmdSave.Tag = "Edit";

            PackListTempDetailForm.ShowDialog();

            BindingPackListTemp();
        }
示例#4
0
        private void cmdNew_Click(object sender, EventArgs e)
        {
                curIndex = grdViewPackListTemp.RowCount;

                frmPackListTempDetail DiagnosisDetailForm = new frmPackListTempDetail();                

                DiagnosisDetailForm.txtPackListTempName.Tag = "0";
                DiagnosisDetailForm.txtPackListTempName.Text = string.Empty;
                DiagnosisDetailForm.cmdSave.Tag = "Add";
                DiagnosisDetailForm.ShowDialog();

                BindingPackListTemp();
        }