/// <summary> /// 提交工单 /// </summary> private void CommitTask() { string Title = ""; string Note = rboxNote.Text; int From = SystemConfig.AppID;//客服中心 int VipLevel = int.Parse(cboxVIP.SelectedValue.ToString()); DateTime?LimitTime = GetLimitTime(); int LimitType = int.Parse(cboxLimitTime.SelectedValue.ToString()); int? Type = _tasktype; //角色异常 int State = SystemConfig.DefaultWorkOrderStatue; //等待处理 int GameName = SystemConfig.GameID; //寻龙记 int? DutyMan = null; int? PreDutyMan = null; int CreatMan = int.Parse(ShareData.UserID); DateTime CreatTime = DateTime.Now; int EditMan = int.Parse(ShareData.UserID); DateTime EditTime = DateTime.Now; string URInfo = lblURinfo.Text; int Rowtype = 0; string strErr = ""; if (Note.Trim().Length == 0) { strErr += LanguageResource.Language.Tip_RemarkNoEmpty + "!\n"; } if (strErr != "") { MsgBox.Show(strErr, LanguageResource.Language.Tip_Tip, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } ComitDoControl(false); GSSModel.Tasks model = new GSSModel.Tasks(); model.F_Title = Title; model.F_Note = Note; model.F_From = From; model.F_VipLevel = VipLevel; model.F_LimitType = LimitType; model.F_LimitTime = LimitTime; model.F_Type = Type; model.F_State = State; model.F_GameName = GameName; model.F_DutyMan = DutyMan; model.F_PreDutyMan = PreDutyMan; model.F_CreatMan = CreatMan; model.F_CreatTime = CreatTime; model.F_EditMan = EditMan; model.F_EditTime = EditTime; model.F_URInfo = URInfo; model.F_Rowtype = Rowtype; _clienthandle.AddTask(model); }
/// <summary> /// 提交工单 /// </summary> private void CommitTask() { Tasks model = getTaskModel(); string strErr = ""; if (ckboxCOther.Checked && model.F_COther.Length == 0) { strErr += LanguageResource.Language.GbVerifyItems + ">" + LanguageResource.Language.Tip_OtherInfoNoEmpty + "!\n"; } if (model.F_Note.Trim().Length == 0) { strErr += LanguageResource.Language.Tip_RemarkNoEmpty + "!\n"; } if (model.F_URInfo.Trim().Length == 0) { strErr += LanguageResource.Language.Tip_CreateWorkNeedUserAndRoleInfo + "!\\n"; } if (strErr != "") { MsgBox.Show(strErr, LanguageResource.Language.Tip_Tip, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } ComitDoControl(false); if (_tasktype.HasValue && SystemConfig.WillCallServicesWorkOrder.ContainsKey(_tasktype.Value)) { //1 create work order 2 action msgCommand cmd = (msgCommand)Enum.Parse(typeof(msgCommand), SystemConfig.WillCallServicesWorkOrder[_tasktype.Value]); GSSModel.Request.RoleData role = new GSSModel.Request.RoleData() { UserID = UserID.Value, RoleID = RoleID.Value, BigZoneId = BigZoneID, ZoneId = ZoneID }; _clienthandle.BindCommandWithSend(cmd, this.Handle.ToInt32(), model, role);//setup:create task 2:recovery role } else { model.F_GameBigZone = BigZoneID.ToString(); model.F_GameZone = ZoneID.ToString(); _clienthandle.AddTask(model); } }
/// <summary> /// 提交工单 /// </summary> private void CommitTask() { string Title = ""; string Note = rboxNote.Text; int From = SystemConfig.AppID;//客服中心 int VipLevel = int.Parse(cboxVIP.SelectedValue.ToString()); DateTime?LimitTime = GetLimitTime(); int LimitType = int.Parse(cboxLimitTime.SelectedValue.ToString()); int? Type = _tasktype; //角色异常 int State = SystemConfig.DefaultWorkOrderStatue; //等待处理 int GameName = SystemConfig.GameID; //寻龙记 string Telphone = tboxTelphone.Text; int? DutyMan = null; int? PreDutyMan = null; int CreatMan = int.Parse(ShareData.UserID); DateTime CreatTime = DateTime.Now; int EditMan = int.Parse(ShareData.UserID); DateTime EditTime = DateTime.Now; string URInfo = lblURinfo.Text; string gpeoplename = tboxGPeopleName.Text; bool CPersonID = ckboxCPersonID.Checked; string COther = tboxCOther.Text; int Rowtype = 0; string strErr = ""; if (ckboxCOther.Checked && COther.Length == 0) { strErr += "验证项> 其它: 内容不能为空!\n"; } //if (Telphone.Trim().Length == 0) //{ // strErr += "联系电话不能为空!\n"; //} //else if (!WinUtil.IsTelphone(Telphone) && !WinUtil.IsMobile(Telphone)) //{ // strErr += LanguageResource.Language.LblTelFormIsError+"!\n(格式:010-88886666或13912341234)\n"; //} //if (Note.Trim().Length < 5) //{ // strErr += "备注内容不应少于五个字!\n"; //} if (strErr != "") { MsgBox.Show(strErr, LanguageResource.Language.Tip_Tip, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } ComitDoControl(false); GSSModel.Tasks model = new GSSModel.Tasks(); model.F_Title = Title; model.F_Note = Note; model.F_From = From; model.F_VipLevel = VipLevel; model.F_LimitType = LimitType; model.F_LimitTime = LimitTime; model.F_Type = Type; model.F_State = State; model.F_GameName = GameName; model.F_Telphone = Telphone; model.F_GPeopleName = gpeoplename; model.F_DutyMan = DutyMan; model.F_PreDutyMan = PreDutyMan; model.F_CreatMan = CreatMan; model.F_CreatTime = CreatTime; model.F_EditMan = EditMan; model.F_EditTime = EditTime; model.F_URInfo = URInfo; model.F_Rowtype = Rowtype; model.F_CPersonID = CPersonID; model.F_COther = COther; _clienthandle.AddTask(model); }