예제 #1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            if (CheckCondition("CREATE_INQ") == true)
            {
                if (Update_Inquiry('1') == true)
                {
                    CmnFunction.ShowMsgBox("Successfully completed.");

                    if (cdvConFactory.Text != "" && cdvConInqGrp.Text != "")
                    {
                        CmnListFunction.View_Inquiry_List(lisInqList, '2', cdvConFactory.Text, cdvConInqGrp.Text);
                    }
                    else
                    {
                        CmnListFunction.View_Inquiry_List(lisInqList, '1', cdvConFactory.Text);
                    }
                }
            }
        }
예제 #2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (CheckCondition("DELETE_INQ") == true)
            {
                if (CmnFunction.ShowMsgBox("Are you sure you want to delete the data?", "Delete", MessageBoxButtons.YesNo, 2) == System.Windows.Forms.DialogResult.Yes)
                {
                    if (Update_Inquiry('3') == true)
                    {
                        CmnFunction.ShowMsgBox("Successfully completed.");

                        if (cdvConFactory.Text != "" && cdvConInqGrp.Text != "")
                        {
                            CmnListFunction.View_Inquiry_List(lisInqList, '2', cdvConFactory.Text, cdvConInqGrp.Text);
                        }
                        else
                        {
                            CmnListFunction.View_Inquiry_List(lisInqList, '1', cdvConFactory.Text);
                        }
                    }
                }
            }
        }
예제 #3
0
 private void cdvInqName_ButtonPress(object sender, EventArgs e)
 {
     CmnListFunction.View_Inquiry_List(cdvInqName.GetListView, '2', cdvFactory.Text, cdvInqGrp.Text);
 }
예제 #4
0
 private void cdvInqGrp_SelectedItemChanged(object sender, Miracom.UI.MCCodeViewSelChanged_EventArgs e)
 {
     CmnListFunction.View_Inquiry_List(cdvInqGrp.GetListView, '2', cdvFactory.Text, cdvInqGrp.Text);
 }
예제 #5
0
 private void cdvConFactory_SelectedItemChanged(object sender, Miracom.UI.MCCodeViewSelChanged_EventArgs e)
 {
     CmnListFunction.View_Inquiry_List(lisInqList, '1', cdvConFactory.Text);
 }