Esempio n. 1
0
 protected void NewGroupRequest()
 {
     //如果新增
     if (Data == null)
     {
         Data         = new WfGroup();
         Data.GroupID = string.Empty;
         ExecQuery();
     }
 }
 protected void NewGroupRequest()
 {
     //如果新增
     if (Data == null)
     {
         Data = new WfGroup();
         Data.GroupID = string.Empty;
         ExecQuery();
     }
 }
Esempio n. 3
0
        protected void DeluxeGridGroup_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                WfGroup group = (WfGroup)e.Row.DataItem;

                HtmlAnchor editItem = (HtmlAnchor)e.Row.FindControl("LinkBtnEdit");
                editItem.Attributes.Add("onclick", "onCreateOrUpdateClick('" + group.GroupID + "')");

                LinkButton delItem = (LinkButton)e.Row.FindControl("LinkBtnDel");
                delItem.CommandArgument = group.GroupID;
                delItem.OnClientClick   = "return window.confirm('确认要删除吗?');";

                #region 格式化数据
                e.Row.Cells[4].Text = group.CreateTime.ToString("yyyy-MM-dd");
                #endregion
            }
        }