Пример #1
0
        private void btnAddSJ_Click(object sender, EventArgs e)
        {
            frmInRcnPenjualan frm = new frmInRcnPenjualan(row_["salesid"].ToString()
                                                          , row_["kotaid"].ToString()
                                                          , row_["logid"].ToString()
                                                          , lappenid_);

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog(this);

            this.logotherTableAdapter.Fill(this.sinarekDataSet.logother);
            this.vproductbaseTableAdapter.Fill(this.sinarekDataSet.vproductbase);
            this.pelTableAdapter.Fill(this.sinarekDataSet.pel);
            this.vlogpelTableAdapter.FillByID(this.sinarekDataSet.vlogpel, int.Parse(row_["logid"].ToString()));
        }
Пример #2
0
        private void btnAddSJ_Click(object sender, EventArgs e)
        {
            try
            {
                frmInRcnPenjualan frm = new frmInRcnPenjualan(row_["salesid"].ToString()
                                                              , row_["kotaid"].ToString()
                                                              , row_["logid"].ToString()
                                                              , lappenid_);
                frm.StartPosition = FormStartPosition.CenterScreen;
                frm.ShowDialog(this);
            }
            catch (Exception ex)
            {
                helper.ErrorMessage(ex.Message + ex.StackTrace);
                helper.SysLog(this.GetType().Name, this.Tag.ToString(), ex.Message + ex.StackTrace);
            }

            this.logotherTableAdapter.FillBySJ(this.sinarekDataSet.logother, int.Parse(row_["logid"].ToString()));
            this.sinarekDataSet.vlogpel.Clear();
            this.vlogpelTableAdapter.FillByID(this.sinarekDataSet.vlogpel, int.Parse(row_["logid"].ToString()));
        }