/// <summary> /// this method is used for adding new and updating the information regarding the scripttype which is /// called on clicking save button. /// </summary> private void UpdateScriptType() { EScriptType scripttype = new EScriptType(); scripttype.Description = txtDescription.Text; scripttype.ScriptName = txtName.Text; scripttype.Active = true; Int64 returnresult; CallCenterDAL callCenterDal = new CallCenterDAL(); if (hfScriptTypeID.Value.Equals("")) { returnresult = callCenterDal.SaveScriptType(scripttype, Convert.ToInt32(EOperationMode.Insert)); if (returnresult == 0) { returnresult = 9999990; } } else { scripttype.ScriptTypeID = Convert.ToInt32(((DataTable)(ViewState["DSGRID"])).Rows[grdScriptType.Rows[Convert.ToInt32(hfScriptTypeID.Value)].DataItemIndex]["ScriptTypeID"]); returnresult = callCenterDal.SaveScriptType(scripttype, Convert.ToInt32(EOperationMode.Update)); if (returnresult == 0) { returnresult = 9999991; } } errordiv.Visible = true; errordiv.InnerHtml = (String)GetGlobalResourceObject("Resource", "msgDatabaseResult" + returnresult.ToString()); hfScriptTypeID.Value = ""; GetScriptType(); }
public static string GetNodeScript(string NodeID, EScriptType ScriptType) { try { return(CDataHelper.GetData("select " + ScriptType.ToString() + " from " + CTableName.FlowChartNode + " where node_id='" + NodeID + "'")); } catch (Exception ex) { CLog.PutDownErrInfo("获取节点脚本操作异常。节点ID:" + NodeID + ",脚本类型:" + ScriptType.ToString() + ",异常信息:" + ex.Message.ToString()); throw ex; } }
/// <summary> /// this method is used for adding new and updating the information regarding the script which is /// called on clicking save button. /// </summary> private void UpdateScript() { var script = new EScript(); script.Description = txtDescription.Text; script.Name = txtName.Text; script.Active = true; script.Default = chkIsDefault.Checked; script.ScriptText = Server.HtmlDecode(txtScriptText.Text); var scripttype = new EScriptType(); scripttype.ScriptTypeID = Convert.ToInt32(ddlscripttype.SelectedValue); script.ScriptType = scripttype; Int64 returnresult; var callCenterDal = new CallCenterDAL(); if (hfScriptID.Value.Equals("")) { returnresult = callCenterDal.SaveScript(script, Convert.ToInt32(EOperationMode.Insert)); if (returnresult == 0) { returnresult = 9999990; } } else { script.ScriptID = Convert.ToInt32(((DataTable)(ViewState["DSGRID"])).Rows[grdScript.Rows[Convert.ToInt32(hfScriptID.Value)].DataItemIndex]["ScriptID"]); returnresult = callCenterDal.SaveScript(script, Convert.ToInt32(EOperationMode.Update)); if (returnresult == 0) { returnresult = 9999991; } } errordiv.InnerHtml = (String)GetGlobalResourceObject("Resource", "msgDatabaseResult" + returnresult.ToString()); errordiv.Visible = true; hfScriptID.Value = ""; GetScript(); }
public ScriptEntry(EScriptType type, string path) : base() { Type = type; Path = path; }
public ScriptEntry(EScriptType Type, string Path) { mType = Type; mPath = Path; }