Exemplo n.º 1
0
 protected void ResolveDeleteButtonForGrid(FineUIPro.Button btn, Grid grid, string noSelectionMessage, string confirmTemplate)
 {
     // 点击删除按钮时,至少选中一项
     btn.OnClientClick = grid.GetNoSelectionAlertInParentReference(noSelectionMessage);
     btn.ConfirmText   = String.Format(confirmTemplate, "&nbsp;<span class=\"highlight\"><script>" + grid.GetSelectedCountReference() + "</script></span>&nbsp;");
     btn.ConfirmTarget = Target.Top;
 }
Exemplo n.º 2
0
 protected void CheckPowerWithButton(string powerName, FineUIPro.Button btn)
 {
     if (!CheckPower(powerName))
     {
         CheckPowerFailWithButton(btn);
     }
 }
Exemplo n.º 3
0
 protected void btClear_Click(object sender, EventArgs e)
 {
     FineUIPro.Button btn = (FineUIPro.Button)sender;
     if (btn.ID == "btnClear")
     {
         PubFunc.FormDataClear(Form2);
         lstDATE1.SelectedDate = DateTime.Now.AddMonths(-1);
         lstDATE2.SelectedDate = DateTime.Now;
     }
     else if (btn.ID == "btClear")
     {
         PubFunc.FormDataClear(FormUser);
         dpkDATE1.SelectedDate = DateTime.Now.AddMonths(-1);
         dpkDATE2.SelectedDate = DateTime.Now;
     }
 }
Exemplo n.º 4
0
 protected void ResolveDeleteButtonForGrid(FineUIPro.Button btn, Grid grid, string confirmTemplate)
 {
     ResolveDeleteButtonForGrid(btn, grid, "请至少应该选择一项记录!", confirmTemplate);
 }
Exemplo n.º 5
0
 /// <summary>
 /// 为删除Grid中选中项的按钮添加提示信息
 /// </summary>
 /// <param name="btn"></param>
 /// <param name="grid"></param>
 protected void ResolveDeleteButtonForGrid(FineUIPro.Button btn, Grid grid)
 {
     ResolveDeleteButtonForGrid(btn, grid, "确定要删除选中的{0}项记录吗?");
 }
Exemplo n.º 6
0
 protected void CheckPowerFailWithButton(FineUIPro.Button btn)
 {
     btn.Enabled = false;
     btn.Hidden  = true;
     btn.ToolTip = CHECK_POWER_FAIL_ACTION_MESSAGE;
 }