示例#1
0
 private void btnChangeReason_Click(object sender, EventArgs e)
 {
     if (dgvNopList.SelectedRows.Count > 0)
     {
         ChangeNopReason frm = new ChangeNopReason(dgvNopList.SelectedRows[0].Cells[0].Value.ToString());
         frm.StartPosition = FormStartPosition.CenterParent;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             if (!string.IsNullOrEmpty(frm.NopMiCode))
             {
                 Nop_HistoryService service = new Nop_HistoryService();
                 service.UpdateNop_History(frm.NopMiCode, GlobalUsage.UserID, Convert.ToInt32(dgvNopList.SelectedRows[0].Cells[7].Value));
                 GetDatas();
             }
         }
     }
 }
示例#2
0
        private void GetDatas()
        {
            Nop_HistoryService sservice = new Nop_HistoryService();

            dgvNopList.DataSource = sservice.GetAllNop_History();
        }