Exemple #1
0
 private void getleibie()
 {
     TextBox1.DataSource    = data.GetDataReader("select distinct leibie from wfshengqing where IsChk='否'");
     TextBox1.DataTextField = "leibie";
     //TextBox1.DataValueField = "id";
     TextBox1.DataBind();
 }
Exemple #2
0
    protected void registrarFrequencia()
    {
        // Fecha máquina se estiver aberta.
        objDevice.Close(objDevice.OpenedDeviceID);

        //Abre máquina
        objDevice.Open(NBioBSPType.DEVICE_ID.AUTO);

        if (objDevice.ErrorCode == NBioBSPError.NONE)
        {
            objExtraction.Capture((int)NBioBSPType.FIR_PURPOSE.DENTIFY);

            objDevice.Close(NBioBSPType.DEVICE_ID.AUTO);

            //ImagemBox();

            Ztext = "";
            Ztext = objExtraction.TextEncodeFIR;

            m_index.IdentifyUser(Ztext, 9);

            if (m_index.ErrorCode == 0)
            {
                Frequencia freq = new Frequencia();
                TextBox1.Text = freq.BaterPonto2(m_index.UserID, 4, System.DateTime.Now, 7);

                TextBox1.DataBind();
            }
        }
    }
Exemple #3
0
    protected void Page_init(object sender, EventArgs e)
    {
        XmlDocument myDoc = new XmlDocument();

        myDoc.Load(Server.MapPath("/tree/game.xml"));
        TextBox1.Text = Server.UrlDecode(myDoc.SelectSingleNode("//teachernote").InnerText);
        TextBox1.DataBind();
    }
Exemple #4
0
    protected void ImageButton1_Click1(object sender, ImageClickEventArgs e)
    {
        XmlDocument myDoc = new XmlDocument();

        myDoc.Load(Server.MapPath("/tree/game.xml"));
        myDoc.SelectSingleNode("//teachernote").InnerText = Server.UrlEncode(TextBox1.Text);
        myDoc.Save(Server.MapPath("/tree/game.xml"));
        TextBox1.DataBind();
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         TextBox1.Text      = DateTime.Today.ToString("dd/MM/yyyy");
         TextBox1.ForeColor = System.Drawing.Color.Blue;
         TextBox1.DataBind();
         llenarCombo();
         llenarCompraEntrada();
         GridView1.DataBind();
         GridView2.DataBind();
         TextBox2.Text = "1";
     }
 }