public static string deleteLog(string nid) { string msg = "failure"; GeneralMethod objgen = new GeneralMethod(); DataSet ds = new DataSet(); ClsUser obj = new ClsUser(); try { obj.id = nid; obj.action = "delete"; ds = obj.manageProjectLog(); msg = "1"; return(msg); } catch { return(msg); } }
public static string saveProjectLog(string nid, string typeid, string eventlog, string edate, string empid, string fdate, string cdate, string addedby, string companyid, string projectid) { string msg = "failure"; GeneralMethod objgen = new GeneralMethod(); DataSet ds = new DataSet(); ClsUser obj = new ClsUser(); string[] nid1 = nid.Split('#'); string[] typeid1 = typeid.Split('#'); string[] eventlog1 = eventlog.Split('#'); string[] edate1 = edate.Split('#'); string[] empid1 = empid.Split('#'); string[] fdate1 = fdate.Split('#'); string[] cdate1 = cdate.Split('#'); string[] projecti1 = projectid.Split('#'); try { for (int i = 0; i < typeid1.Length; i++) { if (typeid1[i] != "") { obj.action = "insert"; obj.id = nid1[i]; obj.typeid = typeid1[i]; obj.remark = eventlog1[i]; obj.dob = edate1[i]; obj.empid = empid1[i]; obj.projectid = projecti1[i]; obj.dob1 = fdate1[i]; obj.dob2 = cdate1[i]; obj.userid = addedby; obj.companyid = companyid; ds = obj.manageProjectLog(); } } msg = "1"; return(msg); } catch { return(msg); } }
public static string getProjectLog(string empid, string compid, string fromdate, string todate, string projectid) { string msg = "failure"; GeneralMethod objgen = new GeneralMethod(); DataSet ds = new DataSet(); ClsUser obj = new ClsUser(); try { obj.fromdate = fromdate; obj.todate = todate; obj.empid = empid; obj.companyid = compid; obj.projectid = projectid; obj.action = "select"; ds = obj.manageProjectLog(); msg = objgen.serilizeinJson(ds.Tables[0]); return(msg); } catch { return(msg); } }