Exemple #1
0
        public void DoSearch(string WhereParameter)
        {
            _engine = new WorkFlowEngineHelpers();

            WhereParams = WhereParameter;
            var data = _engine.SearchOnZirProjeMoshtari(WhereParameter, EntityTypeID);

            ViewState["datasource"]     = data;
            grdProjecsSelect.DataSource = data;
            grdProjecsSelect.DataBind();
        }
Exemple #2
0
        protected void grdZirProjeData_DataBound(object sender, EventArgs e)
        {
            _engine = new WorkFlowEngineHelpers();
            if (ViewState["datasource"] == null)
            {
                return;
            }
            var access = ViewState["datasource"] as List <Model.sp_ListOFPaymankarsProject_Result>;

            int counter = 0;

            foreach (Telerik.Web.UI.GridDataItem item in grdZirProjeData.Items)
            {
                //  Model.sp_ListOFPaymankarsProject_Result _search = access[counter];// access[counter] as Model.sp_ListOFPaymankarsProject_Result;
                global::WorkFlow.InterFaces.ISearchTable _search = access[counter];


                if (item.FindControl("hdColumn") != null)
                {
                    ((HiddenField)item.FindControl("hdColumn")).Value    = Server.HtmlEncode(_search.StepAccess);
                    ((HiddenField)item.FindControl("hdExecuting")).Value = _search.WfExecutingID.ToString();
                    if (!string.IsNullOrEmpty(_search.StepAccess))
                    {
                        if (!_engine.CheckAccess(_search.StepEntity, global::AccessManagementService.Access.RightRelatedService.View))
                        {
                            item.Controls.RemoveAt(2);
                            item.Controls.AddAt(2, new GridTableCell()
                            {
                                Text = "اتمام مهلت"
                            });
                        }


                        ((Label)item.FindControl("lblStepName")).Text = _search.StepEntity.Name;
                    }
                    else
                    {
                        ((ImageButton)item.FindControl("btnSelect")).Visible = false;
                        ((ImageButton)item.FindControl("btnGO")).Visible     = true; //if user doesnt create wf
                    }
                }
                counter++;
            }
        }
Exemple #3
0
 protected void grdZirProjeData_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     _engine = new WorkFlowEngineHelpers();
     HiddenField hd    = e.Item.FindControl("hdColumn") as HiddenField;
     HiddenField exeID = e.Item.FindControl("hdExecuting") as HiddenField;
 }
Exemple #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SetPrimaryKeys();
     SetGroupByExpression();
     _engine = new WorkFlowEngineHelpers();
 }