Ejemplo n.º 1
0
    private void BookEditDisplay()
    {
        string    strWhere = " RecordID='" + this.RecordCode + "'  ";
        DataTable list     = this.amAction.GetList(strWhere);

        if (list.Rows.Count > 0)
        {
            DataRow dataRow = list.Rows[0];
            this.LbApplyPerson.Text = PTMultiClassesAction.GetNameOfUser(dataRow["UserCode"].ToString());
            this.LbApplyDate.Text   = Convert.ToDateTime(dataRow["RecordDate"].ToString()).ToShortDateString();
        }
    }
Ejemplo n.º 2
0
    private void BookEditDisplay()
    {
        string strWhere = string.Concat(new object[]
        {
            " RecordID='",
            this.RecordCode,
            "' and LibraryCode='",
            this.LibraryCode,
            "' "
        });
        DataTable list = this.amAction.GetList(strWhere);

        if (list.Rows.Count > 0)
        {
            DataRow dataRow = list.Rows[0];
            this.txtApplyPerson.Text = PTMultiClassesAction.GetNameOfUser(dataRow["UserCode"].ToString());
            this.txtApplyDate.Text   = Convert.ToDateTime(dataRow["RecordDate"].ToString()).ToShortDateString();
            this.txtRemark.Text      = dataRow["Remark"].ToString();
        }
    }
Ejemplo n.º 3
0
 private void BookAddDisplay()
 {
     this.txtApplyPerson.Text = PTMultiClassesAction.GetNameOfUser(this.Session["yhdm"].ToString());
     this.txtApplyDate.Text   = DateTime.Now.ToShortDateString();
 }