protected void btngetMyrecord_Click(object sender, EventArgs e)
        {
            //SMT.SaaS.BLLCommonServices.PersonalRecordWS.PersonalRecordServiceClient client = new SMT.SaaS.BLLCommonServices.PersonalRecordWS.PersonalRecordServiceClient();

            //string BeginDate = string.Empty, EndDate = string.Empty;
            //string strCreateUserID = string.Empty, strfilterString = string.Empty, strSortKey = string.Empty;
            //int pageCount = 0;
            //strCreateUserID = "55922953-53b1-4bb8-b15d-0c05d0e215d2";
            ////strCreateUserID = "5347a18b-5c9c-4e40-a1c4-ce30389224ed";
            //strSortKey = " CREATEDATE DESC ";
            //strfilterString = "";//SQL
            //SMT.SaaS.BLLCommonServices.PersonalRecordWS.T_PF_PERSONALRECORD[] myrecords =
            //client.GetPersonalRecord(0, strSortKey, "2", strfilterString, strCreateUserID, BeginDate, EndDate, ref pageCount);
            try
            {
                string EntityType = "T_VM_USEVEHICLEAPPLY", EntityKey = "UVAPPLYID"
                , EntityId     = "43f8623b-a7a2-4bb9-9277-f5ded09ea8cb"
                , strXmlParams = "";
                int CheckState = 1;

                VMServicesClient vmClient = new VMServicesClient();
                Tracer.Debug("EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + vmClient.Endpoint.Address + " strXmlParams:" + strXmlParams);

                //int i = vmClient.UpdateCheckState(EntityType, EntityKey, EntityId, CheckState, strXmlParams);
                string msg = string.Empty;


                EnginFlowBLL bll = new EnginFlowBLL();
                SMT.FlowWFService.SubmitData subdata = new FlowWFService.SubmitData();
                subdata.ApprovalUser = new FlowWFService.UserInfo();
                bll.UpdateAuditStatus(subdata, "VM", EntityType, EntityKey, EntityId, "1", ref msg);



                //Utility.UpdateFormCheckState("VM", EntityType, EntityKey, EntityId, BLLCommonServices.CheckStates.Approving, ref msg, strXmlParams);
                Tracer.Debug("" + msg);

                Tracer.Debug("EnginFlowBLL更新业务系统成功!");
                txtMessage.Text += "更新成功!" + msg;
            }
            catch (Exception ex)
            {
                Tracer.Debug(ex.ToString());
                txtMessage.Text += ex.ToString();
                //throw ex;
            }
        }
        protected void btngetMyrecord_Click(object sender, EventArgs e)
        {
            //SMT.SaaS.BLLCommonServices.PersonalRecordWS.PersonalRecordServiceClient client = new SMT.SaaS.BLLCommonServices.PersonalRecordWS.PersonalRecordServiceClient();

            //string BeginDate = string.Empty, EndDate = string.Empty;
            //string strCreateUserID = string.Empty, strfilterString = string.Empty, strSortKey = string.Empty;
            //int pageCount = 0;
            //strCreateUserID = "55922953-53b1-4bb8-b15d-0c05d0e215d2";
            ////strCreateUserID = "5347a18b-5c9c-4e40-a1c4-ce30389224ed";  
            //strSortKey = " CREATEDATE DESC ";
            //strfilterString = "";//SQL       
            //SMT.SaaS.BLLCommonServices.PersonalRecordWS.T_PF_PERSONALRECORD[] myrecords =
            //client.GetPersonalRecord(0, strSortKey, "2", strfilterString, strCreateUserID, BeginDate, EndDate, ref pageCount);
            try
            {
                string EntityType = "T_VM_USEVEHICLEAPPLY", EntityKey = "UVAPPLYID"
                    , EntityId = "43f8623b-a7a2-4bb9-9277-f5ded09ea8cb"
                    , strXmlParams = "";
                int CheckState = 1;

                VMServicesClient vmClient = new VMServicesClient();
                Tracer.Debug("EntityType:" + EntityType + " EntityKey:" + EntityKey + "\r\n" + " EntityId:" + EntityId + " CheckState:" + CheckState + " URL:" + vmClient.Endpoint.Address + " strXmlParams:" + strXmlParams);

                //int i = vmClient.UpdateCheckState(EntityType, EntityKey, EntityId, CheckState, strXmlParams);
                string msg = string.Empty;


                EnginFlowBLL bll = new EnginFlowBLL();
                SMT.FlowWFService.SubmitData subdata = new FlowWFService.SubmitData();
                subdata.ApprovalUser = new FlowWFService.UserInfo();
                bll.UpdateAuditStatus(subdata, "VM", EntityType, EntityKey, EntityId, "1", ref msg);




                //Utility.UpdateFormCheckState("VM", EntityType, EntityKey, EntityId, BLLCommonServices.CheckStates.Approving, ref msg, strXmlParams);
                Tracer.Debug("" + msg);

                Tracer.Debug("EnginFlowBLL更新业务系统成功!");
                txtMessage.Text +="更新成功!"+ msg;


            }
            catch (Exception ex)
            {
                Tracer.Debug(ex.ToString());
                txtMessage.Text += ex.ToString();
                //throw ex;
            }

        }