private void getDateModel(int intCID) { cModel = ccBll.GetCall_CustomerEntity(intCID); if (intCID > 0) { intCounts = WBll.GetCall_WorkBillCounts(CID); } strForUser = PublicMethod.UserInfoList(cModel.CC_Owner); int intCount = 0; DataTable dt = WBll.GetCall_WorkBillList("CWB_CCID=" + CID, 1, 1, "CWB_ID desc", out intCount); if (dt.Rows.Count > 0) { DateTime dtime = DateTime.MinValue; DateTime.TryParse(dt.Rows[0]["CWB_CreateTime"].ToString().Trim(), out dtime); strLastServiceTime = dtime.ToString("yyyy-MM-dd HH:mm"); } }
private void BindData() { HYTD.BLL.Call_WorkBillBLL WBll = new HYTD.BLL.Call_WorkBillBLL(); HYTD.BLL.Call_CustomerBLL ccBll = new HYTD.BLL.Call_CustomerBLL(); HYTD.BLL.Call_CustomerBLL CBll = new HYTD.BLL.Call_CustomerBLL(); //Call_Customer ccModel = new Call_Customer(); if (CID > 0) { cModel = ccBll.GetCall_CustomerEntity(CID); } if (cModel == null) { cModel = new Call_Customer(); } if (WID > 0) { #region //获取工单信息 wModel = WBll.GetCall_WorkBillEntity(WID); if (wModel == null) { wModel = new Call_WorkBill(); } CID = wModel.CWB_CCID; intWorkBill = wModel.CWB_Type; if (wModel.CWB_ServiceType != null) { intServiceType = wModel.CWB_ServiceType.Value; } if (wModel.CWB_SoftType != null) { intSoftWare = wModel.CWB_SoftType.Value; } if (wModel.CWB_CallType != null) { intConsultType = wModel.CWB_CallType.Value; } intStatus = wModel.CWB_Status; UserInfoBLL userBll = new UserInfoBLL(); strUserName = userBll.GetUserInfoEntityByUserCode(wModel.CWB_Creater); strCreateTime = getDateToString(wModel.CWB_CreateTime); if (wModel.CWB_OperationTime != null) { strOptionTime = getDateToString(wModel.CWB_OperationTime.Value); } else { strOptionTime = getDateToString(DateTime.Now); } intCreater = wModel.CWB_Creater; if (wModel.CWB_ForUser != null && wModel.CWB_ForUser.Value > 0) { intForUser = wModel.CWB_ForUser.Value; } strBillCode = wModel.CWB_Code; #endregion #region 满意度调查 HYTD.BLL.Call_SatisfactionBLL csBll = new HYTD.BLL.Call_SatisfactionBLL(); HYTD.BLL.Call_Satisfaction_ItemBLL csiBll = new HYTD.BLL.Call_Satisfaction_ItemBLL(); sModel = csBll.GetCall_SatisfactionEntityBYCWBID(wModel.CWB_ID); if (sModel != null) { siModel = csiBll.GetCall_Satisfaction_ItemEntityBYCSID(sModel.CS_ID); RadioButtonList1.SelectedValue = siModel.CSI_Result.Value.ToString(); } else { sModel = new Call_Satisfaction(); } #endregion } //获取客户信息 cModel = CBll.GetCall_CustomerEntity(CID); if (cModel == null) { cModel = new Call_Customer(); } if (CID > 0) { intCounts = WBll.GetCall_WorkBillCounts(CID); } }
private void BindData() { HYTD.BLL.Call_WorkBillBLL WBll = new HYTD.BLL.Call_WorkBillBLL(); HYTD.BLL.Call_CustomerBLL ccBll = new HYTD.BLL.Call_CustomerBLL(); HYTD.BLL.Call_CustomerBLL CBll = new HYTD.BLL.Call_CustomerBLL(); //Call_Customer ccModel = new Call_Customer(); if (CID > 0) { cModel = ccBll.GetCall_CustomerEntity(CID); } if (cModel == null) { cModel = new Call_Customer(); } if (WID > 0) { //获取工单信息 wModel = WBll.GetCall_WorkBillEntity(WID); if (wModel == null) { wModel = new Call_WorkBill(); } CID = wModel.CWB_CCID; intWorkBill = wModel.CWB_Type; if (wModel.CWB_ServiceType != null) { intServiceType = wModel.CWB_ServiceType.Value; } if (wModel.CWB_SoftType != null) { intSoftWare = wModel.CWB_SoftType.Value; } if (wModel.CWB_CallType != null) { intConsultType = wModel.CWB_CallType.Value; } intStatus = wModel.CWB_Status; UserInfoBLL userBll = new UserInfoBLL(); strUserName = userBll.GetUserInfoEntityByUserCode(wModel.CWB_Creater); strCreateTime = getDateToString(wModel.CWB_CreateTime); if (wModel.CWB_OperationTime != null) { strOptionTime = getDateToString(wModel.CWB_OperationTime.Value); } else { strOptionTime = getDateToString(DateTime.Now); } intCreater = wModel.CWB_Creater; if (wModel.CWB_ForUser != null && wModel.CWB_ForUser.Value > 0) { intForUser = wModel.CWB_ForUser.Value; } strBillCode = wModel.CWB_Code; } else { wModel.CWB_CallInEmail = cModel.CC_Email; wModel.CWB_CallInTel = cModel.CC_Tel; wModel.CWB_CallInUserName = cModel.CC_UserName; strUserName = CurrentUserInfo.UserName; strOptionTime = getDateToString(DateTime.Now); strCreateTime = strOptionTime; intCreater = Convert.ToInt32(CurrentUserInfo.UserCode); if (cModel != null) { intForUser = Convert.ToInt32(cModel.CC_Owner); } } //获取客户信息 cModel = CBll.GetCall_CustomerEntity(CID); if (cModel == null) { cModel = new Call_Customer(); } if (CID > 0) { intCounts = WBll.GetCall_WorkBillCounts(CID); } }