Beispiel #1
0
    public void readerData()
    {
        DataTable dt = ReleaseDAL.Getzidongjiesuan();

        if (dt.Rows.Count > 0)
        {
            string[] sj = dt.Rows[0]["jiesuantime"].ToString().Split(' ');

            TextBox5.Text = sj[0] + "-" + sj[1];

            string[] fm = sj[1].Split(':');

            DropDownList1.SelectedValue = fm[0];
            DropDownList2.SelectedValue = fm[1].Replace("AM", "");
            DropDownList3.SelectedValue = fm[2];

            jszq.Text = dt.Rows[0]["jiesuanZQ"].ToString();//结算周期

            if (dt.Rows[0]["isCNewQi"].ToString() == "1")
            {
                ClientScript.RegisterStartupScript(GetType(), "", "<script>window.onload=function(){setCk()};</script>");
            }

            shijid.Text = dt.Rows[0]["jiesuantime"].ToString();
        }


        CheckBox2.Checked = true;
    }