예제 #1
0
        private void chargeHistoryListBox_DoubleClick(object sender, EventArgs e)
        {
            ChargeAgentHistForm historyForm = new ChargeAgentHistForm(_chargeTable);

            historyForm.DataGridSelectedIndex = chargeHistoryListBox.SelectedIndex;
            historyForm.ShowDialog(this);
        }
예제 #2
0
        /// <summary>
        /// 充值审核
        /// </summary>
        public override void CheckCmd()
        {
            int                 currentAgentId = Convert.ToInt32(AgentDGV.CurrentRow.Cells["id"].Value);
            DataTable           dt             = OMWorkBench.DataAgent.GetAgentChargeRecords(currentAgentId);
            ChargeAgentHistForm hisForm        = new ChargeAgentHistForm(dt);

            hisForm.CheckButton.Visible = true;
            hisForm.ShowDialog(this);
        }
예제 #3
0
        private void LinkLab_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LinkLabel clickLab = sender as LinkLabel;

            switch (clickLab.Name)
            {
            case "SubStandardAgentNumLab":
            case "SubLateAgentNumLab":
            {
                OMWorkBench.CreateForm(new ViewAgentForm(OMWorkBench.AgentId, OMWorkBench.MangerId, _agentDS.Tables["organization"].Rows[0]["name"].ToString(), false));
                break;
            }

            case "SubStandardUserNumLab":
            case "SubLateUserNumLab":
            {
                OMWorkBench.CreateForm(new ViewUserForm(false));
                break;
            }

            case "ManagerNumLab":
            {
                OMWorkBench.CreateForm(new ViewManagerForm(OMWorkBench.AgentId, OMWorkBench.AgentName));
                break;
            }

            case "ChargeLab":
            {
                DataTable           chargeHistory     = OMWorkBench.DataAgent.GetAgentChargeRecords(OMWorkBench.AgentId);
                ChargeAgentHistForm chargeHistoryForm = new ChargeAgentHistForm(chargeHistory);
                chargeHistoryForm.ShowDialog(this);
                break;
            }

            case "ChargeSubLab":
            {
                DataTable           chargeHistory     = OMWorkBench.DataAgent.GetAgentChargeSubRecords(OMWorkBench.AgentId);
                ChargeAgentHistForm chargeHistoryForm = new ChargeAgentHistForm(chargeHistory);
                chargeHistoryForm.ShowDialog(this);
                break;
            }

            case "ReturnLab":
            {
                int               sendOrgId    = -1;
                int               receiveOrgId = OMWorkBench.AgentId;
                DataTable         returnTable  = OMWorkBench.DataAgent.GetReturnRecords(sendOrgId, receiveOrgId);
                ReturnRecordsForm returnForm   = new ReturnRecordsForm(returnTable);
                returnForm.ShowDialog(this);
                break;
            }

            case "ReturnSubLab":
            {
                int               sendOrgId    = -1;
                int               receiveOrgId = OMWorkBench.AgentId;
                DataTable         returnTable  = OMWorkBench.DataAgent.GetReturnRecords(sendOrgId, receiveOrgId);
                ReturnRecordsForm returnForm   = new ReturnRecordsForm(returnTable);
                returnForm.ShowDialog(this);
                break;
            }

            default: break;
            }
        }