public static Common.Inbox Load(Guid guid) { Business.Inbox inboxController = new Business.Inbox(); Common.Inbox inbox = new Common.Inbox(); inboxController.Load(guid, inbox); return(inbox); }
private void InitializePage() { #region GetSenderNumber DataTable dtSender = Facade.PrivateNumber.GetUserPrivateNumbersForSend(UserGuid); dtSender.Columns.Add("Value", typeof(string)); foreach (DataRow row in dtSender.Rows) { row["Value"] = string.Format("{0};{1}", row["Guid"], row["Type"]); } drpSenderNumber.DataSource = dtSender; drpSenderNumber.DataTextField = "Number"; drpSenderNumber.DataValueField = "Value"; drpSenderNumber.DataBind(); drpSenderNumber.Items.Insert(0, new ListItem(string.Empty, string.Empty)); #endregion #region GetPeriodType foreach (SmsSentPeriodType periodType in System.Enum.GetValues(typeof(SmsSentPeriodType))) { drpPeriodType.Items.Add(new ListItem(Language.GetString(periodType.ToString()), ((int)periodType).ToString())); } drpPeriodType.Items.Insert(0, new ListItem(string.Empty, string.Empty)); #endregion dtpSendDateTime.Time = DateTime.Now.TimeOfDay.ToString(); btnSendTestSms.Text = Language.GetString(btnSendTestSms.Text); btnSendSms.Text = Language.GetString(btnSendSms.Text); if (Session["Language"].ToString() == "fa") { dtpSendDateTime.Date = DateManager.GetSolarDate(DateTime.Now); } else { dtpSendDateTime.Date = DateTime.Now.ToShortDateString(); } if (ReferenceGuid != Guid.Empty) { switch (MasterPage.ToLower()) { case "usersoutbox": case "useroutbox": Common.Outbox outbox = Facade.Outbox.Load(ReferenceGuid); txtSmsBody.Text = outbox.SmsText; break; case "inbox": Common.Inbox inbox = Facade.Inbox.Load(ReferenceGuid); txtSmsBody.Text = inbox.SmsText; break; } } }
public static void InsertSms(Common.Inbox receiveSms) { Business.Inbox inboxController = new Business.Inbox(); }