public Hs.Comminucation.InvType getHttpType(ServiceData.OpertorType _operType) { if (this.ServiceItemAttrs[0].Type == 0) { return(Hs.Comminucation.InvType.GET); } else if (this.ServiceItemAttrs[0].Type == 1) { return(Hs.Comminucation.InvType.POST); } return(Hs.Comminucation.InvType.UNKNOWN); }
public string getOperCommand(ServiceData.OpertorType _operType) { for (int index = 0; index < GlobalConfig.SystemMenus.Count; index++) { ServiceItem item = GlobalConfig.SystemMenus[index]; if (item.PUrlId == this.UrlId && _operType == ServiceData.OpertorType.Add && item.CmdString.Contains("ADD_")) { return(item.CmdString); } else if (item.PUrlId == this.UrlId && _operType == ServiceData.OpertorType.Modi && item.CmdString.Contains("MODI_")) { return(item.CmdString); } else if (item.PUrlId == this.UrlId && _operType == ServiceData.OpertorType.Delete && item.CmdString.Contains("DELE_")) { return(item.CmdString); } } return(null); }