Ejemplo n.º 1
0
    void Factor_Payment_Update()
    {
        Shoping      ac = new Shoping();
        ShopingDatum dm = new ShopingDatum();

        dm.Id_Factor = decimal.Parse(Request.QueryString["Id_Factor"]);


        if (RadioButton1.Checked)
        {
            dm.Peyment_Kind = "پرداخت اینترنتی";
        }
        if (RadioButton2.Checked)
        {
            dm.Peyment_Kind = "واريز به حساب";
        }

        dm.Bank_Name = DropDownList1.SelectedItem.Text;

        dm.Peyment_Code         = TextBox1.Text;
        dm.Bank_Code            = TextBox9.Text;
        dm.Peyment_Date         = TextBox2.Text;
        dm.Peyment_Price        = decimal.Parse(TextBox3.Text);
        dm.Customer_Name        = TextBox4.Text;
        dm.Customer_Tell        = TextBox5.Text;
        dm.Customer_Time_Recive = TextBox6.Text;
        dm.Customer_Address     = TextBox7.Text;
        dm.Description          = TextBox8.Text;

        ac.Update_Peyment_Factor(dm);
        Label20.Visible = true;
        Label20.Text    = "اطلاعات به روز شد";
    }
    void factor_peyment_register()
    {
        Shoping      ac = new Shoping();
        ShopingDatum dm = new ShopingDatum();

        dm.Id_Factor = decimal.Parse(Request.QueryString["Id_Factor"]);

        if (RadioButton1.Checked)
        {
            dm.Peyment_Kind = "پرداخت اینترنتی";
        }
        if (RadioButton2.Checked)
        {
            dm.Peyment_Kind = "واريز به حساب";
        }

        dm.Bank_Name = DropDownList1.SelectedItem.Text;

        dm.Peyment_Code         = TextBox1.Text;
        dm.Bank_Code            = TextBox9.Text;
        dm.Peyment_Date         = TextBox2.Text;
        dm.Peyment_Price        = decimal.Parse(TextBox3.Text);
        dm.Customer_Name        = TextBox4.Text;
        dm.Customer_Tell        = TextBox5.Text;
        dm.Customer_Time_Recive = TextBox6.Text;
        dm.Customer_Address     = TextBox7.Text;
        dm.Description          = TextBox8.Text;

        ac.Update_Peyment_Factor(dm);
        factor_condition_update();
        Response.Redirect("~/index.aspx?Type=ShopPeymentEnd&Factor_Code=" + Label37.Text + "&Id_Factor=" + Label34.Text + "&Sum_Price=" + Label55.Text);
    }