Example #1
0
 public ZRNModel(WordValue _BackValue, WordValue _CrawValue, BitValue _SignalValue, BitValue _OutputValue)
 {
     BackValue   = _BackValue;
     CrawValue   = _CrawValue;
     SignalValue = _SignalValue;
     OutputValue = _OutputValue;
 }
Example #2
0
 public SHLBModel()
 {
     SourceValue      = BitValue.Null;
     DestinationValue = BitValue.Null;
     CountValue       = WordValue.Null;
     MoveValue        = WordValue.Null;
 }
Example #3
0
 public PLSRDModel(WordValue _ArgumentValue, WordValue _VelocityValue, BitValue _OutputValue1, BitValue _OutputValue2)
 {
     ArgumentValue = _ArgumentValue;
     VelocityValue = _VelocityValue;
     OutputValue1  = _OutputValue1;
     OutputValue2  = _OutputValue2;
 }
Example #4
0
 public ZCPModel(WordValue _InputValue1, WordValue _InputValue2, WordValue _InputValue3, BitValue _OutputValue)
 {
     InputValue1 = _InputValue1;
     InputValue2 = _InputValue2;
     InputValue3 = _InputValue3;
     OutputValue = _OutputValue;
 }
Example #5
0
        public ActionResult DailyTimeSheet(int id, string date)
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);
            var userName  = Convert.ToString(Session["UserName"]);

            if (userId > 0 && concernId > 0)
            {
                int totalValue = 0;
                var sheet      = _report.DailyTimeSheet(userName, userId, id, date, "en-US");
                foreach (var item in sheet)
                {
                    totalValue = Convert.ToInt32(item.TotalBeforeVat);
                }
                WordValue value = new WordValue();
                var       final = value.NumberToWords(totalValue);
                //var today = DateTime.Now.ToString("yyyy-MM-dd");

                ReportViewModels viewModels = new ReportViewModels
                {
                    ResponseTimeSheets = sheet
                };
                ViewBag.Value = final;
                var report = new PartialViewAsPdf("DailyTimeSheet", viewModels);
                return(report);
            }
            return(RedirectToAction("LogIn", "GlobalData", new { Area = "Global" }));
        }
Example #6
0
 public SMOVModel(WordValue _SoruceValue, WordValue _SourceStart, WordValue _SourceCount, WordValue _DestinationValue, WordValue _DestinationStart)
 {
     SoruceValue      = _SoruceValue;
     SourceStart      = _SourceStart;
     SourceCount      = _SourceCount;
     DestinationValue = _DestinationValue;
     DestinationStart = _DestinationStart;
 }
Example #7
0
 public SMOVModel()
 {
     SoruceValue      = WordValue.Null;
     SourceStart      = WordValue.Null;
     SourceCount      = WordValue.Null;
     DestinationValue = WordValue.Null;
     DestinationStart = WordValue.Null;
 }
Example #8
0
        public override void SetPara(int id, IValueModel value)
        {
            switch (id)
            {
            case 0: FreqValue = (WordValue)value; break;

            case 1: PulseValue = (WordValue)value; break;

            case 2: OutputValue = (BitValue)value; break;

            default: throw new ArgumentOutOfRangeException(String.Format("Index {0:d} out of range for parameters", id));
            }
        }
Example #9
0
            public override string ToString()
            {
                int    N = 20;
                String repeatedString;

                string str = "";

                foreach (int i in ArrOfLine)
                {
                    str = str + Convert.ToString(i) + " ";
                }

                try
                {
                    repeatedString = new String('.', N - WordValue.Count());
                }
                catch { repeatedString = "."; }


                return(WordValue + repeatedString + Convert.ToString(NumberInText) + ": " + str);
            }
Example #10
0
 public LDWGEModel(WordValue v1, WordValue v2)
 {
     Value1 = v1;
     Value2 = v2;
 }
Example #11
0
 public SETModel()
 {
     Value = BitValue.Null;
     Count = WordValue.Null;
 }
Example #12
0
 public ADDModel(WordValue inputValue1, WordValue inputValue2, WordValue outputValue)
 {
     InputValue1 = inputValue1;
     InputValue2 = inputValue2;
     OutputValue = outputValue;
 }
Example #13
0
 public LDWGEModel()
 {
     Value1 = WordValue.Null;
     Value2 = WordValue.Null;
 }
Example #14
0
 public RORModel(WordValue sourceValue, WordValue destValue, WordValue count)
 {
     SourceValue      = sourceValue;
     DestinationValue = destValue;
     Count            = count;
 }
Example #15
0
 public ADDModel()
 {
     InputValue1 = WordValue.Null;
     InputValue2 = WordValue.Null;
     OutputValue = WordValue.Null;
 }
Example #16
0
 public MOVModel(WordValue s, WordValue d)
 {
     SourceValue       = s;
     DestinationValue  = d;
     TotalVaribleCount = 0;
 }
Example #17
0
 public ATCHModel(string _FuncName, WordValue _IDValue)
 {
     FuncName = _FuncName;
     IDValue  = _IDValue;
 }
Example #18
0
 public INCModel()
 {
     InputValue  = WordValue.Null;
     OutputValue = WordValue.Null;
 }
Example #19
0
 public NEGModel(WordValue _InputValue, WordValue _OutputValue)
 {
     InputValue  = _InputValue;
     OutputValue = _OutputValue;
 }
Example #20
0
 public BCDModel()
 {
     InputValue  = WordValue.Null;
     OutputValue = WordValue.Null;
 }
Example #21
0
 public TRDModel(WordValue startValue)
 {
     StartValue = startValue;
 }
Example #22
0
 public TRDModel()
 {
     StartValue = WordValue.Null;
 }
Example #23
0
 public SETModel(BitValue value, WordValue count)
 {
     Value = value;
     Count = count;
 }
Example #24
0
 public DTOWModel()
 {
     InputValue        = DoubleWordValue.Null;
     OutputValue       = WordValue.Null;
     TotalVaribleCount = 0;
 }
Example #25
0
 public ATCHModel()
 {
     FuncName = String.Empty;
     IDValue  = WordValue.Null;
 }
Example #26
0
 public DTOWModel(DoubleWordValue input, WordValue output)
 {
     InputValue        = input;
     OutputValue       = output;
     TotalVaribleCount = 0;
 }
Example #27
0
 public override int GetHashCode() => WordValue.GetHashCode();
Example #28
0
 public RORModel()
 {
     SourceValue      = WordValue.Null;
     DestinationValue = WordValue.Null;
     Count            = WordValue.Null;
 }
Example #29
0
 public INCModel(WordValue inputValue, WordValue outputValue)
 {
     InputValue  = inputValue;
     OutputValue = outputValue;
 }
Example #30
0
 public MOVModel()
 {
     SourceValue       = WordValue.Null;
     DestinationValue  = WordValue.Null;
     TotalVaribleCount = 0;
 }