Exemplo n.º 1
0
    protected void btnJZUpdate_Click(object sender, EventArgs e)
    {
        KFB_BBKGJZ o_KFB_BBKGJZ = new KFB_BBKGJZ();

        getKFB_BBKGJZ(o_KFB_BBKGJZ);
        ArrayList arrLM = getArrList(this.drpLM);
        ArrayList arrCB = getArrList(this.drpCB);

        foreach (string strLM in arrLM)
        {
            o_KFB_BBKGJZ.N_LMNO = Convert.ToInt32(strLM);
            foreach (string strCB in arrCB)
            {
                o_KFB_BBKGJZ.N_CBXH = Convert.ToInt32(strCB);
                if (!this.objControl.Exists(mi_TYPE, Convert.ToInt32(strLM), Convert.ToInt32(strCB)))
                {
                    this.objControl.AddWF(o_KFB_BBKGJZ, (((Button)sender).CommandName));
                }
                else
                {
                    objControl.UpdateWF(o_KFB_BBKGJZ, (((Button)sender).CommandName));
                }
            }
        }

        this.ShowMsg("存儲成功");
    }
Exemplo n.º 2
0
 /// <summary>
 /// 兩邊賠率加總控管(跟盤) 取得頁面欄位值
 /// </summary>
 /// <returns></returns>
 private void getKFB_BBKGJZ(KFB_BBKGJZ o_KFB_BBKGJZ)
 {
     o_KFB_BBKGJZ.N_TYPE   = mi_TYPE;
     o_KFB_BBKGJZ.N_J_RF   = Convert.ToSingle(this.txtRFJZRate.Text);
     o_KFB_BBKGJZ.N_J_DX   = Convert.ToSingle(this.txtDXJZRate.Text);
     o_KFB_BBKGJZ.N_J_DY   = Convert.ToSingle(this.txtDYJZRate.Text);
     o_KFB_BBKGJZ.N_J_DS   = Convert.ToSingle(this.txtDSJZRate.Text);
     o_KFB_BBKGJZ.N_J_ZDRF = Convert.ToSingle(this.txtZDRFJZRate.Text);
     o_KFB_BBKGJZ.N_J_ZDDX = Convert.ToSingle(this.txtZDDXJZRate.Text);
     o_KFB_BBKGJZ.N_J_YSEY = Convert.ToSingle("0");
 }
Exemplo n.º 3
0
 protected void drpCB_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!this.drpLM.SelectedValue.Equals("0") && !this.drpCB.SelectedValue.Equals("0"))
     {
         KFB_BBKGJZ o_KFB_BBKGJZ = this.objControl.GetModel(mi_TYPE, Convert.ToInt32(this.drpLM.SelectedValue), Convert.ToInt32(this.drpCB.SelectedValue));
         setJZList(o_KFB_BBKGJZ);
     }
     else
     {
         setJZZero();
     }
 }
Exemplo n.º 4
0
 private void setJZList(KFB_BBKGJZ o_KFB_BBKGJZ)
 {
     if (o_KFB_BBKGJZ != null)
     {
         this.txtRFJZRate.Text   = o_KFB_BBKGJZ.N_J_RF.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_RF.ToString();
         this.txtDXJZRate.Text   = o_KFB_BBKGJZ.N_J_DX.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_DX.ToString();
         this.txtDYJZRate.Text   = o_KFB_BBKGJZ.N_J_DY.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_DY.ToString();
         this.txtDSJZRate.Text   = o_KFB_BBKGJZ.N_J_DS.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_DS.ToString();
         this.txtZDRFJZRate.Text = o_KFB_BBKGJZ.N_J_ZDRF.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_ZDRF.ToString();
         this.txtZDDXJZRate.Text = o_KFB_BBKGJZ.N_J_ZDDX.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_ZDDX.ToString();
         //this.txtSYJZRate.Text = o_KFB_BBKGJZ.N_J_YSEY.ToString().Equals("") ? "0" : o_KFB_BBKGJZ.N_J_YSEY.ToString();
     }
     else
     {
         setJZZero();
     }
 }