Пример #1
0
 private void dingTouProductManagerListForm_OnManagerInformationSelected(DingTouProductManagerInformation expert)
 {
     this.isNeedFillData = true;
     this.expert = expert;
     this.webBrowser.Document.Window.Frames[3].Navigate(string.Format("http://kfs.agent.soufun.com/Admin/keywordad/ModifyMoney.aspx?agentid={0}", expert.Managerid));
 }
 private void 填写ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if ((this.dataGridView1.DataSource == null) || ((this.dataGridView1.DataSource as DataTable).Rows.Count == 0))
     {
         MessageBox.Show("已经无用户再可用于自动填写");
         base.Hide();
     }
     else if (this.dataGridView1.SelectedRows.Count == 0)
     {
         MessageBox.Show("未选中任何行");
     }
     else if (this.OnManagerInformationSelected != null)
     {
         DataRow drExport = (this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row;
         DingTouProductManagerInformation expert = new DingTouProductManagerInformation
         {
             Managerid = drExport[0].ToString(),
             AddMoney = drExport[1].ToString(),
             ContractId = drExport[2].ToString()
         };
         this.OnManagerInformationSelected(expert);
     }
 }
Пример #3
0
 public DingTouProductAutoAdder()
 {
     this.webBrowser = null;
     this.isNeedFillData = false;
     this.expert = null;
 }