예제 #1
0
        private void Load_Activity()
        {
            try
            {
                if (dgvBatcList.Rows.Count > 0)
                {
                    DataTable dt = objBatchActivity_DL.GetView_ToTransfer_Rework(dgvBatcList.CurrentRow.Cells["BatchNo"].Value.ToString(),
                                                                                 Convert.ToInt32(BatchActivity.Status.Finished));

                    objSourceActivityList.DataSource = dt;
                    dgvActivity.AutoGenerateColumns  = false;
                    dgvActivity.DataSource           = objSourceActivityList;
                    objSourceActivityList.ResetBindings(true);

                    //DataTable dtRemaining = objBatchActivity_DL.GetView_Remaining_ToTransfer(dgvBatcList.CurrentRow.Cells["BatchNo"].Value.ToString(),
                    //    Convert.ToInt32(BatchActivity.Status.SecondaryPacking), Convert.ToInt32(BatchActivity.Status.Finished));

                    //objSourceRemaining.DataSource = dtRemaining;
                    //dgvRemaining.AutoGenerateColumns = false;
                    //dgvRemaining.DataSource = objSourceRemaining;
                    //objSourceRemaining.ResetBindings(true);
                }


                // SetColors();
            }
            catch (Exception)
            {
                MessageBox.Show(this, "Error occured while loading Batch List", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }