コード例 #1
0
        void showracelistinfo()
        {
            RC_RaceDAL dal   = new RC_RaceDAL();
            DataSet    ds    = dal.GetRaceDetail(strID);
            RC_Race    model = DataConvert.DataRowToModel <RC_Race>(ds.Tables[0].Rows[0]);

            Rtitle.Text      = model.Rtitle;
            hd_content.Value = model.RaceDesc;
            starttime.Text   = model.StartTime;
            movenum.Text     = model.MoveNum.ToString();
            endtime.Text     = model.EndTime;
            appid.Text       = model.AppID;
            if (model.CodeImg != null && model.CodeImg != "")
            {
                img0.Src = "../../WXWall/" + model.CodeImg;
            }
            if (strAction == "show")
            {
                this.btnReset.Visible = false;
                this.btnSave.Visible  = false;
                starttime.ReadOnly    = true;
                endtime.ReadOnly      = true;
                movenum.ReadOnly      = true;
            }
            else
            {
                starttime.Attributes.Add("onclick", "WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})");
                endtime.Attributes.Add("onclick", "WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})");
            }
        }
コード例 #2
0
 /// <summary>
 /// 获取赛事详细
 /// </summary>
 void GetRaceDetaile()
 {
     if (strID != null && strID != "")
     {
         RC_RaceDAL dal = new RC_RaceDAL();
         Response.Write(Dataset2Json(dal.GetRaceDetail(strID)));
     }
 }