- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using Newtonsoft.Json.Linq;
- namespace ZXWMS.WebSite.WebPage.Market
- {
- public partial class WebForm1 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
-
- // 新增数据初始值
- JObject defaultObj2 = new JObject();
- defaultObj2.Add("Begin", "");
- defaultObj2.Add("End", "");
- defaultObj2.Add("Lowest", "");
- defaultObj2.Add("Lowest2", "");
- defaultObj2.Add("Beyond", "");
- defaultObj2.Add("Fixed", "");
- // 在第一行新增一条数据
- Button3.OnClientClick = Grid3.GetAddNewRecordReference(defaultObj2, false);
- JObject defaultObj3 = new JObject();
- defaultObj3.Add("sl", "223");
- defaultObj3.Add("sl2", "");
- defaultObj3.Add("dj", "");
- Button1.OnClientClick = Grid2.GetAddNewRecordReference(defaultObj3, false);
- }
- }
- }
- }
复制代码 |