private void getDownData(HttpContext context) { string id = context.Request.QueryString["id"]; int? sort = context.Request.QueryString["sort"].ToInt(0); string parid = context.Request.QueryString["parid"]; //entityList = bll.FindWhere(p => p.WorkflowNodeConfig_TasksInstanceID == id && p.WorkflowNodeConfig_Setp>sort).OrderBy(p => p.WorkflowNodeConfig_Setp).ToList(); //if (entityList.Count > 0) //{ // sort = entityList.Last().WorkflowNodeConfig_Setp; // entity = bll.Find(p => p.WorkflowNodeConfigID == parid); // entity.WorkflowNodeConfig_Setp = sort; // if(!bll.Update(entity,out msg)) // { // context.Response.Write("{\"data\":\"1\"}"); // } //} entity = bll.Get(p => p.NodeConfigExID == parid); entity.NodeConfigEx_Setp = sort + 1; entity.NodeConfigEx_UpdateTime = DateTime.Now; if (bll.Update(entity)) { context.Response.Write("{\"data\":\"1\"}"); } else { context.Response.Write("{\"data\":\"0\"}"); } }
protected void btn_Tijiao_Click(object sender, ImageClickEventArgs e) { string id = Request["id"]; if (!string.IsNullOrEmpty(id)) { Workflow_NodeConfigEx entity = new Workflow_NodeConfigEx(); entity = bll.Get(p => p.NodeConfigExID == id); entity.NodeConfigEx_Setp = txtWorkflowNodeConfig_Setp.Text.Trim().ToInt(0); entity.NodeConfigEx_Name = txtWorkflowNodeConfig_Name.Text.Trim(); entity.NodeConfigEx_AuditMode = drpWorkflowNodeConfig_AuditMode.SelectedValue; entity.NodeConfigEx_AuditObjectID = hid_DepCode.Value; entity.NodeConfigEx_Mechanism = ddlMechanism.SelectedValue.ToInt(0); entity.NodeConfigEx_NodeSign = ddlNodeSign.SelectedValue; entity.NodeConfigEx_UpdateUserID = base.CurrUserInfo().UserID; entity.NodeConfigEx_UpdateTime = DateTime.Now; //entity.NodeConfigEx_IsDisplayContract = ckoNodeConfigEx_IsDisplayContract.Checked; entity.NodeConfigEx_DataMappingID = hid_NodeConfigEx_DataMappingID.Value; if (entity.NodeConfigEx_Mechanism == 2)//自动分配规则 { entity.NodeConfigEx_DistributionRule = Request.Form["radioAutoOption"]; } string msg = ""; if (bll.Update(entity)) { MessageBox.ResponseScript(this, "window.location.href=document.URL;alert('保存成功!');window.parent.WorkFlowNodeTree();"); } else { MessageBox.Show(this, "保存错误"); } } else { MessageBox.Show(this, "请选择步骤"); } }