protected void btnGetRefreshDocData_Click(object sender, EventArgs e) { SmtOACommonAdmin sv = new SmtOACommonAdmin(); SmtOAPersonOffice office = new SmtOAPersonOffice(); List <string> ddddd = office.GetApprovalTypeByCompanyid("703dfb3c-d3dc-4b1d-9bf0-3507ba01b716"); //List<string> ddddd = office.GetApprovalTypeByCompanyid("cafdca8a-c630-4475-a65d-490d052dca36"); bool needreFreshData = false; int pagecont = 0, contdata = 0; //List<string> postid = new List<string>() { "d798ead2-559b-488c-ae76-b7640afff8e7" }; //List<string> departmentid = new List<string>() { "c18d20e3-9f94-4b4c-ac24-b8256132e7d2" }; List <string> postid = new List <string>(); List <string> departmentid = new List <string>(); List <string> companyid = new List <string>() { "bac05c76-0f5b-40ae-b73b-8be541ed35ed" }; var q = sv.RefreshSendDocData("ca356aeb-ea37-41a4-a09d-0d4491b6acf2", 1, 15, ref pagecont, ref contdata, postid, departmentid, companyid, ref needreFreshData, true, string.Empty, null, "2013年"); if (q == null) { Tracer.Debug("获取到公文为空"); } else { Tracer.Debug("获取到公文数:" + q.Count()); } }
/// <summary> /// 自动生成房租费用 /// </summary> /// <param name="eGFunc"></param> private void HouseHireRecordTrigger(IEnumerable <XElement> eGFunc) { if (eGFunc.Count() == 0) { return; } string strHireAppId = string.Empty; foreach (var item in eGFunc) { if (item.Attribute("Name").Value == "HIREAPPID") { strHireAppId = item.Attribute("Value").Value; break; } } SmtOACommonAdmin svcHireApp = new SmtOACommonAdmin(); svcHireApp.FromEngineToAddHireRecord(strHireAppId); }
protected void btnGetRefreshDocData_Click(object sender, EventArgs e) { SmtOACommonAdmin sv = new SmtOACommonAdmin(); SmtOAPersonOffice office = new SmtOAPersonOffice(); List<string> ddddd = office.GetApprovalTypeByCompanyid("703dfb3c-d3dc-4b1d-9bf0-3507ba01b716"); //List<string> ddddd = office.GetApprovalTypeByCompanyid("cafdca8a-c630-4475-a65d-490d052dca36"); bool needreFreshData = false; int pagecont=0,contdata = 0; //List<string> postid = new List<string>() { "d798ead2-559b-488c-ae76-b7640afff8e7" }; //List<string> departmentid = new List<string>() { "c18d20e3-9f94-4b4c-ac24-b8256132e7d2" }; List<string> postid = new List<string>() ; List<string> departmentid = new List<string>(); List<string> companyid = new List<string>() { "bac05c76-0f5b-40ae-b73b-8be541ed35ed" }; var q = sv.RefreshSendDocData("ca356aeb-ea37-41a4-a09d-0d4491b6acf2", 1, 15, ref pagecont, ref contdata, postid, departmentid, companyid, ref needreFreshData, true, string.Empty, null, "2013年"); if (q == null) { Tracer.Debug("获取到公文为空"); } else { Tracer.Debug("获取到公文数:" + q.Count()); } }
/// <summary> /// 根据传回的XML,添加派车单 /// </summary> /// <param name="xele"></param> private static string VehicledispatchAdd(IEnumerable<XElement> eGFunc) { try { if (eGFunc.Count() == 0) { return ""; } string strEmployeeID = string.Empty; string strOwnerID = string.Empty; string strOwnerPostID = string.Empty; string strOwnerDepartmentID = string.Empty; string strOwnerCompanyID = string.Empty; foreach (var q in eGFunc) { string strName = q.Attribute("Name").Value; switch (strName) { case "CREATEUSERID": strEmployeeID = q.Attribute("Value").Value; break; case "OWNERID": strOwnerID = q.Attribute("Value").Value; break; case "OWNERPOSTID": strOwnerPostID = q.Attribute("Value").Value; break; case "OWNERDEPARTMENTID": strOwnerDepartmentID = q.Attribute("Value").Value; break; case "OWNERCOMPANYID": strOwnerCompanyID = q.Attribute("Value").Value; break; } } string employeeid = strEmployeeID.Replace("{", "").Replace("}", ""); T_OA_VEHICLEDISPATCH entity = new T_OA_VEHICLEDISPATCH(); entity.VEHICLEDISPATCHID = Guid.NewGuid().ToString(); SmtOACommonAdmin oa = new SmtOACommonAdmin(); List<T_OA_VEHICLE> vehicleInfoList = oa.GetVehicleInfoList(); entity.T_OA_VEHICLE = vehicleInfoList[0]; entity.CREATEDATE = DateTime.Now; entity.OWNERID = strOwnerID; entity.OWNERPOSTID = strOwnerPostID; entity.OWNERDEPARTMENTID = strOwnerDepartmentID; entity.OWNERCOMPANYID = strOwnerCompanyID; entity.CREATEUSERID = strOwnerID; entity.CREATEPOSTID = strOwnerPostID; entity.CREATEDEPARTMENTID = strOwnerDepartmentID; entity.CREATECOMPANYID = strOwnerCompanyID; VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll(); if (vehicleDispatchManagerBll.AddVehicleDispatch(entity) > 0) { return entity.VEHICLEDISPATCHID; } else { string err = "Error"; return err; } } catch (Exception e) { string abc = "<OA>Message=[" + e.Message + "]" + "<OA>Source=[" + e.Source + "]<OA>StackTrace=[" + e.StackTrace + "]<OA>TargetSite=[" + e.TargetSite + "]"; Tracer.Debug(abc); return abc; } }
/// <summary> /// 自动生成房租费用 /// </summary> /// <param name="eGFunc"></param> private void HouseHireRecordTrigger(IEnumerable<XElement> eGFunc) { if (eGFunc.Count() == 0) { return; } string strHireAppId = string.Empty; foreach (var item in eGFunc) { if (item.Attribute("Name").Value == "HIREAPPID") { strHireAppId = item.Attribute("Value").Value; break; } } SmtOACommonAdmin svcHireApp = new SmtOACommonAdmin(); svcHireApp.FromEngineToAddHireRecord(strHireAppId); }