Exemple #1
0
        public ActionResult DailyVisitReport(string dvPartyName, string dvVisitDetail, string dvEstCost, string dvQty, string dvNextFollowUp, string dvRemark)
        {
            clsDailyVisitEntry oCls = new clsDailyVisitEntry();

            oCls.dvCompCode    = SessionMaster.CompCode;
            oCls.dvPartyName   = dvPartyName.Substring(0, dvPartyName.LastIndexOf('-'));
            oCls.dvMobile      = dvPartyName.Substring(dvPartyName.LastIndexOf('-') + 1, dvPartyName.Length - dvPartyName.LastIndexOf('-') - 1);
            oCls.dvVisitDetail = dvVisitDetail;
            if (dvQty != "")
            {
                oCls.dvQty = int.Parse(dvQty);
            }
            if (dvEstCost != "")
            {
                oCls.dvEstCost = decimal.Parse(dvEstCost);
            }
            if (dvNextFollowUp != "")
            {
                oCls.dvNextFollowUp = Convert.ToDateTime(dvNextFollowUp);
            }
            oCls.dvRemark = dvRemark;

            List <clsDailyVisitEntry> aData = oSubmit.InsDailyVisitReport(oCls);

            return(RedirectToAction("DailyVisitReport", new { aType = aData[0].aType, aMsg = aData[0].aMsg, MenCode = Request.QueryString["MenCode"] }));
        }
Exemple #2
0
        /*End 181012 */
        /*Start 181016 */
        public ActionResult GetDailyVisitPartyList()
        {
            clsDailyVisitEntry frm  = new clsDailyVisitEntry();
            DDLController      oDDL = new DDLController();

            frm.lstSchEmp = oDDL.GetDailyVisitPartyList();
            return(Json(frm, JsonRequestBehavior.AllowGet));
        }
Exemple #3
0
        public ActionResult VisitScheduleList()
        {
            clsDailyVisitEntry prop = new clsDailyVisitEntry();

            return(View(prop));
        }
Exemple #4
0
        public ActionResult DailyVisitReport()
        {
            clsDailyVisitEntry prop = new clsDailyVisitEntry();

            return(View(prop));
        }