Beispiel #1
0
        private void btnBorongan_Click(object sender, EventArgs e)
        {
            DialogResult res = RadMessageBox.Show("Data Hasil Borongan akan diprocess. Pilih [Cancel] untuk membatalkan process."
                                                  , "Process Borongan"
                                                  , MessageBoxButtons.OKCancel
                                                  , RadMessageIcon.Question
                                                  , MessageBoxDefaultButton.Button2);

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                //process borongan
                using (sinarekDataSetTableAdapters.boronganTableAdapter borongan = new sinarekDataSetTableAdapters.boronganTableAdapter())
                {
                    borongan.pCreateDataBoronganGaji(NBConfig.IGMID, NBConfig.ValidUserName);
                }
                MessageBox.Show("Data Borongan sudah terprocess.");
            }
        }
Beispiel #2
0
        private void btnBorongan_Click(object sender, EventArgs e)
        {
            DialogResult res = RadMessageBox.Show("Data Hasil Borongan untuk minggu yang terpiliah akan diprocess. Pilih [Cancel] untuk membatalkan process."
                                                  , "Process Borongan"
                                                  , MessageBoxButtons.OKCancel
                                                  , RadMessageIcon.Question
                                                  , MessageBoxDefaultButton.Button2);

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                //process borongan
                using (sinarekDataSetTableAdapters.boronganTableAdapter borongan = new sinarekDataSetTableAdapters.boronganTableAdapter())
                {
                    borongan.pCreateDataBoronganGaji(int.Parse(rddGajiMingguan.SelectedValue.ToString()), NBConfig.ValidUserName);
                }
                MessageBox.Show("Data Borongan sudah terprocess.");
                this.vrinciangajiTableAdapter.FillByGID(this.sinarekDataSet.vrinciangaji, int.Parse(rddGajiMingguan.SelectedValue.ToString()), 2);
            }
        }